Modify

Opened 10 years ago

Last modified 4 years ago

#1206 new Bugs

Document escaping from within code.

Reported by: Joel de Guzman Owned by: Daniel James
Milestone: To Be Determined Component: quickbook
Version: Boost 1.34.1 Severity: Problem
Keywords: Cc:

Description

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

Attachments (0)

Change History (2)

comment:1 Changed 9 years ago by Daniel James

Summary: Escaping from within code?Document escaping from within code.

From the 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 :-(

comment:2 Changed 4 years ago by Joel de Guzman

Owner: changed from Joel de Guzman to Daniel James

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Daniel James.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.