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-04 01:36:21


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

  * status: assigned => closed
  * resolution: => fixed

Comment:

 Ok, I have been thinking for this for a while now and after looking at the
 code I realized that it isn't difficult to do the preprocessing inside the
 interpret_pragma hook. But while implementing this idea I stumbled over a
 couple of issues which had to be fixed before everything worked just fine.

 To demonstrate how this can be done with only a couple lines of code I
 created a new example called 'preprocess_pragma_output', which does
 exactly what its name says: it takes the option token sequence from a
 #pragma directive, concatenates everything into a single string,
 preprocesses this string using the current context, and returns the
 generated token sequence to be inserted in the output.

 Everything (the example and the fixes) are committed to the SVN(Head).
 Please give some feedback if this is really what you need. I'm going to
 close this ticket, please re-open it as needed.

 Note to self: the Wave docs have to be updated, still.

 Regards Hartmut

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1752#comment:3>
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