37 lines
715 B
C++
37 lines
715 B
C++
|
#ifndef BOOST_METAPARSE_V1_ERROR_LITERAL_EXPECTED_HPP
|
||
|
#define BOOST_METAPARSE_V1_ERROR_LITERAL_EXPECTED_HPP
|
||
|
|
||
|
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
|
||
|
// Distributed under the Boost Software License, Version 1.0.
|
||
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
||
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
namespace boost
|
||
|
{
|
||
|
namespace metaparse
|
||
|
{
|
||
|
namespace v1
|
||
|
{
|
||
|
namespace error
|
||
|
{
|
||
|
template <char C>
|
||
|
struct literal_expected
|
||
|
{
|
||
|
typedef literal_expected type;
|
||
|
|
||
|
static std::string get_value()
|
||
|
{
|
||
|
return std::string("Expected: ") + C;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|
||
|
|