
20 Nov
2005
20 Nov
'05
12:19 p.m.
Hello, What is a correct way to implement 'defined_macro' hook? For some reason I always get empty 'definition' list. My hook implementation looks like this: class hook : public boost::wave::context_policies::default_preprocessing_hooks { public: template <typename TokenT, typename ParametersT, typename DefinitionT> void defined_macro(TokenT const ¯o_name, bool is_functionlike, ParametersT const ¶meters, DefinitionT const &definition, bool is_predefined) { if (!definition.empty()) { // never gets here } } }; I am using Boost 1.33 and VC .NET 2005 compiler. Alexey Bakhvalov