Re: [Boost-bugs] [Boost C++ Libraries] #1206: Document escaping from within code. (was: Escaping from within code?)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1206: Document escaping from within code. (was: Escaping from within code?)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-03-22 15:59:31


#1206: Document escaping from within code.
-------------------------------+--------------------------------------------
  Reporter: djowel | Owner: djowel
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: quickbook
   Version: Boost 1.34.1 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment(by danieljames):

 From the [http://article.gmane.org/gmane.comp.lib.boost.documentation/1055
 original email] with the formatting corrected:

 John:

   Just another data point: escaping to !BoostBook from within code doesn't
   work unless the escape is inside a macro:

   {{{
   template <class T>
   struct function_traits
   {
     static const std::size_t arity = __below;
     typedef __below result_type;
     typedef __below '''arg<replaceable>N</replaceable>_type''';
   };
   }}}

   Does '''not''' process the escape, whereas:

   {{{
   [def __argN '''arg<replaceable>N</replaceable>_type''']
   template <class T>
   struct function_traits
   {
     static const std::size_t arity = __below;
     typedef __below result_type;
     typedef __below __argN;
   };
   }}}

   Does process the escape. Took me a while to figure this out :-(

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1206#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:59 UTC