Compile problem with regex.hpp and VS6SP5
When I included regex.hpp into my project: #include
This compiled OK, has any one else had this problem and any comments on this fix or is there anything else that I missed so I do nto have to change the regex.hpp file? it appeared to me that the VS6 compile has a problem with a typename as a parameter in a macro that is in turn a template parameter.
Thank you for any help.
This is a known issue, but I don't understand why you need to fix it: if you are using VC6 then BOOST_MSVC should be defined and no typename will be used in the expression - have you done something to boost's configuration? (BTW this library is regularly tested with VC6 and does work "out of the box"). John Maddock http://ourworld.compuserve.com/homepages/john_maddock/index.htm
Hi there ! I am a long time user of Boost, and i have a little question. I am currently developing a C++ based reflection system. which allows me to call methods of a class over this procedure. virtual boost::any Call( const std::string & name,std::vector< boost::any > parameters ); meaning i can call a method like myClass.Call("MyMethod",paramaters ) ; which will invoke "the myClass.MyMethod method.. This all works perfectly. and i generate "function" stubs using preprocessor macros in the implementaiton files of my class to map from boost::any to real data types. e.g METHOD_DECLARE( myClass,myMethod ) METHOD_PARAMETER( int ); METHOD_PARAMETER( std::string ) METHOD_END which "exports" a method from myclass with the given parameters to be callbable over the reflection method. ( myClass.myMethod( int, std::string ); ) Now since i am not so very good in programming with templates e.g for meta programming, i wanted to ask some of the gurus out there :-) if there is a way to use templates somewhoe to generate this function stubs...e.g like in boost:python v.2 so that i only need e.g class_builder <myClass> mybuilder; mybuilder.addMethod( &myClass.myMethod,"MyMethod") and the any to parameter type mapping would be generated automatically ? I hope i made myself clear about the intention, by the way target platform is MSVC 7.0/7.1 or Intel C++ 7.0. ( WIN32 all ) Thanks Bernhard Glueck
participants (3)
-
Bernhard Glueck
-
John Maddock
-
soulofsealion <dworthem@symyx.com>