/*============================================================================= Copyright (c) 2011-2014 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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) =============================================================================*/ #ifndef SPROUT_DETAIL_CHAR_LITERAL_HPP #define SPROUT_DETAIL_CHAR_LITERAL_HPP #include #include #include namespace sprout { namespace detail { #if SPROUT_USE_UNICODE_LITERALS template struct char_literal_of; template struct char_literal_of : public sprout::integral_constant {}; template struct char_literal_of : public sprout::integral_constant {}; template struct char_literal_of : public sprout::integral_constant {}; template struct char_literal_of : public sprout::integral_constant {}; #else template struct char_literal_of; template struct char_literal_of : public sprout::integral_constant {}; template struct char_literal_of : public sprout::integral_constant {}; #endif } // namespace detail } // namespace sprout // // SPROUT_CHAR_LITERAL // #if SPROUT_USE_UNICODE_LITERALS # define SPROUT_CHAR_LITERAL(CHAR, TYPE) \ (sprout::detail::char_literal_of::value) #else # define SPROUT_CHAR_LITERAL(CHAR, TYPE) \ (sprout::detail::char_literal_of::value) #endif #endif // #ifndef SPROUT_DETAIL_CHAR_LITERAL_HPP