1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix char literal implementation

This commit is contained in:
bolero-MURAKAMI 2014-10-27 10:16:49 +09:00
parent 773855410b
commit 897d1e25b6
18 changed files with 325 additions and 95 deletions

View file

@ -10,6 +10,7 @@
#include <sprout/config.hpp>
#include <sprout/string.hpp>
#include <sprout/type_traits/integral_constant.hpp>
#include <sprout/preprocessor/cat.hpp>
//
@ -69,10 +70,8 @@
#endif
#define SPROUT_LITERAL_CHAR_DEF_IMPL(NAME, CHAR, ELEM) \
template<> \
struct NAME<ELEM> { \
public: \
SPROUT_STATIC_CONSTEXPR ELEM value = CHAR; \
}; \
SPROUT_CONSTEXPR_OR_CONST ELEM NAME<ELEM>::value
struct NAME<ELEM> \
: public sprout::integral_constant<ELEM, CHAR> \
{}
#endif // #ifndef SPROUT_DETAIL_LITERAL_DEF_HPP