$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [any] new version
From: Ilya Bobir (ilya.bobir_at_[hidden])
Date: 2011-09-01 00:16:01
On Wed, Aug 31, 2011 at 10:26 PM, Andrey Semashev
<andrey.semashev_at_[hidden]> wrote:
> [...]
>
> In addition, on most platforms there will be multiple instances of
> type_id<T>::value for a single given T if the application uses type_id<T> in
> multiple modules.
> [...]
Can you elaborate on this?
Are not you supposed to provide an explicit initialization for the
type_id<T>::value for every T you are using and that would be the only
instance?
I can not find anything in the standard that would contradict your
statement, at the moment, except that if you treat a template
instantiation as a class in this case you may say that 9.4.2 para. 5
applies to template instantiations and then there should be no more
than once instance of a static member for a particular set of template
arguments.