Boost logo

Boost Users :

From: Hartmut Kaiser (hartmut.kaiser_at_[hidden])
Date: 2005-11-20 13:25:22


 
Alexey Bakhvalov wrote:

> 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 &macro_name,
> bool is_functionlike, ParametersT const &parameters,
> DefinitionT const &definition, bool
> is_predefined)
> {
> if (!definition.empty()) {
> // never gets here
> }
> }
> };
>
> I am using Boost 1.33 and VC .NET 2005 compiler.

This is a known issue in 1.33.0 and it has been fixed for 1.33.1 (and in
CVS::HEAD).

Regards Hartmut


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net