
David Matz wrote:
it seems that the problem concerns a specific compiler bug in microsoft compilers <= 13.10.6030 (MSVC 7.1).
The MSVC8 and g++ (4.1.2) compilers are able to build the code without errors.
#include <boost/optional/optional.hpp> // included for some reason #include <boost/extension/shared_library.hpp> #include <boost/extension/convenience.hpp> // load_single_library
void loadExtension () { boost::extensions::factory_map fm; // we don't need the following line to produce the compiler error // ... }
Any ideas how to get it to work with the good old Visual Studio 2003?
Hmmm... We don't even need to include optional.hpp! The following gets me the very same compile error, on MSVC 7.1: ////////////////////////////////////////////////// namespace boost { template<class T> class foo ; template<class T> void get ( foo<T>* ); } #include <boost/extension/shared_library.hpp> #include <boost/extension/convenience.hpp> boost::extensions::factory_map fm; ////////////////////////////////////////////////// MSVC 7.1 tells me: boost\extension\convenience.hpp(28) : error C2039: 'boost::get' : is not a member of 'boost::extensions::shared_library' Still, I'm clueless as well... Kind regards, -- Niels Dekker http://www.xs4all.nl/~nd/dekkerware Scientific programmer at LKEB, Leiden University Medical Center