|
Boost : |
From: Andreas Huber (ah2003_at_[hidden])
Date: 2003-03-09 18:33:20
Hi Aleksey
Sometimes I have to pass an abstract class to mpl::aux::msvc_eti_base. On
MSVC7.0 the compiler complains with the following error:
d:\Data\boostCvsRoot\boost\boost\mpl\aux_\is_msvc_eti_arg.hpp(48) : error
C2259: 'boost::mpl::inherit2<T1,T2>' : cannot instantiate abstract class ...
The following patch to the current CVS version seems to fix this:
RCS file: /cvsroot/boost/boost/boost/mpl/aux_/is_msvc_eti_arg.hpp,v
retrieving revision 1.1
diff -r1.1 is_msvc_eti_arg.hpp
48c48
< static T get();
--- > static const T & get(); Since T is never cv-qualified or a reference, this should work under all circumstances. Thanks & Regards, Andreas P.S. Just to make sure you've seen it: http://lists.boost.org/MailArchives/boost/msg44601.php It's definitely low prio because it's a *warning* appearing only on MSVC7.1.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk