This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: incompatibility between g++ and vc++


Hi Vincent,

I believe that MSVC++ is not compliant to ISO 14882 in this case.

Try this instead:

template <class Clock>
Clock const timer<Clock>::clock_ = Clock();

(Hmmm, shouldn't that be a "static Clock const volatile clock_;", since you don't want it cached-optimized?)

HTH,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]