1 #ifndef BOOST_METAPARSE_V1_ERROR_UNPAIRED_HPP
2 #define BOOST_METAPARSE_V1_ERROR_UNPAIRED_HPP
4 // Copyright Abel Sinkovics (abel@sinkovics.hu) 2015.
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 #include <boost/mpl/vector.hpp>
23 template <int Line, int Col, class Msg = boost::mpl::na>
26 typedef unpaired type;
28 static std::string get_value()
31 s << Msg::get_value() << " (see " << Line << ":" << Col << ")";
36 template <int Line, int Col>
37 struct unpaired<Line, Col, boost::mpl::na>
39 typedef unpaired type;
41 template <class Msg = boost::mpl::na>
42 struct apply : unpaired<Line, Col, Msg> {};