Re: [Boost-bugs] [Boost C++ Libraries] #1752: Feeding new tokens to be processed from a "#pragma wave" directive

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1752: Feeding new tokens to be processed from a "#pragma wave" directive
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-02 12:27:03


#1752: Feeding new tokens to be processed from a "#pragma wave" directive
---------------------------------+------------------------------------------
  Reporter: caminant_at_[hidden] | Owner: hkaiser
      Type: Feature Requests | Status: assigned
 Milestone: Boost 1.36.0 | Component: wave
   Version: Boost 1.34.1 | Severity: Problem
Resolution: | Keywords:
---------------------------------+------------------------------------------
Changes (by hkaiser):

  * status: new => assigned

Comment:

 Replying to [ticket:1752 caminant_at_[hidden]]:
> While processing a custom "#pragma wave" directive using a struct
 derived from
> context_policies::default_preprocessing_hooks like in this example :
>
 [snipped example]
>
> it is possible to feed tokens in the "pending" container, that are
 copied
> verbatim to the output. What I think it would be very interesting is
 that
> this tokens are not copied verbatim, but parsed and processed. For
 instance,
> you could add "#define" or "#include" directives and they would be
> processed normally. Right now they are just copied.

 It's currently implemented the way it is to conform with the #define
 preprocessor directive for which it is undefined behaviour to generate a
 token sequence comprising in another preprocessor directive.

 Do you have a real use case for this functionality or is it just a 'nice
 to have' feature?

 Regards Hartmut

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1752#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC