Boost logo

Boost Users :

Subject: Re: [Boost-users] [CONFIG] static const definitions
From: John Maddock (boost.regex_at_[hidden])
Date: 2013-02-28 04:34:40


> On 2/27/2013 5:09 AM, boost-users-request-at-lists.boost.org |Boost/Allow
> to home| wrote:
>> In fact even when initialized inline, an out of line definition should
>> always be provided as different compilers have different ideas about what
>> constitutes "use" of the variable (rather than just the value). MSVC
>> pretty
>> much never requires an out-of-line definition for example, where as GCC
>> will
>> often generate linker errors if you don't provide it.
> The problem is that MSVC is _prohibiting_ an out-of-line definition!
> (Visual Studio 2010)

I've not come across that one before - do you have an example?

John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net