Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

unpaired

Synopsis

namespace error
{
  template <int Line, int Col, class Msg = boost::mpl::na>
  struct unpaired;
}

This is a parsing error message.

Table 88. Arguments

Name

Type

Line

int value

Col

int value

Msg

template metaprogramming value


Description

Template class representing the error that the closing element of an "opening element ... closing element" structure is missing. (eg. a closing paren is missing). Line and Col point to the beginning of the opening element (eg. the opening paren). Msg is the error message the parser trying to parse the closing element failed with.

It supports currying: unpaired<Line, Col> is a template metafunction class taking one argument: the Msg element and returning the corresponding unpaired value.

Header

#include <boost/metaparse/error/unpaired.hpp>

PrevUpHomeNext