Opened 15 years ago

Last modified 9 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

Change History (2)

comment:1 by Daniel James, 14 years ago

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 by Joel de Guzman, 9 years ago

Owner: changed from Joel de Guzman to Daniel James
Note: See TracTickets for help on using tickets.