diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:38:45 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:39:52 +0900 |
commit | 5cde13f21d36c7224b0e13d11c4b49379ae5210d (patch) | |
tree | e8269ac85a4b0f7d416e2565fa4f451b5cb41351 /boost/metaparse/v1/fail_tag.hpp | |
parent | d9ec475d945d3035377a0d89ed42e382d8988891 (diff) | |
download | boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.tar.gz boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.tar.bz2 boost-5cde13f21d36c7224b0e13d11c4b49379ae5210d.zip |
Imported Upstream version 1.61.0
Change-Id: I96a1f878d1e6164f01e9aadd5147f38fca448d90
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/metaparse/v1/fail_tag.hpp')
-rw-r--r-- | boost/metaparse/v1/fail_tag.hpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/boost/metaparse/v1/fail_tag.hpp b/boost/metaparse/v1/fail_tag.hpp new file mode 100644 index 0000000000..3a0c0c17d9 --- /dev/null +++ b/boost/metaparse/v1/fail_tag.hpp @@ -0,0 +1,42 @@ +#ifndef BOOST_METAPARSE_V1_FAIL_TAG_HPP +#define BOOST_METAPARSE_V1_FAIL_TAG_HPP + +// Copyright Abel Sinkovics (abel@sinkovics.hu) 2009 - 2012. +// 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 <boost/metaparse/v1/fwd/get_message.hpp> +#include <boost/metaparse/v1/fwd/get_position.hpp> + +#include <iostream> + +namespace boost +{ + namespace metaparse + { + namespace v1 + { + struct fail_tag { typedef fail_tag type; }; + + template <> + struct get_message_impl<fail_tag> + { + template <class A> + struct apply { typedef typename A::message type; }; + }; + + template <> + struct get_position_impl<fail_tag> + { + template <class A> + struct apply : A::source_position {}; + }; + } + } +} + +#endif + + |