fix sprout::uuid::udl::_uuid

This commit is contained in:
bolero-MURAKAMI 2012-03-19 14:16:33 +09:00
parent d7fbadb62c
commit aa91f8ce29

View file

@ -15,17 +15,17 @@ namespace sprout {
// //
// _uuid // _uuid
// //
SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(char const* s, std::size_t) { SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(char const* s, std::size_t size) {
return sprout::uuids::string_generator()(s); return sprout::uuids::string_generator()(s, s + size);
} }
SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(wchar_t const* s, std::size_t) { SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(wchar_t const* s, std::size_t size) {
return sprout::uuids::string_generator()(s); return sprout::uuids::string_generator()(s, s + size);
} }
SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(char16_t const* s, std::size_t) { SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(char16_t const* s, std::size_t size) {
return sprout::uuids::string_generator()(s); return sprout::uuids::string_generator()(s, s + size);
} }
SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(char32_t const* s, std::size_t) { SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(char32_t const* s, std::size_t size) {
return sprout::uuids::string_generator()(s); return sprout::uuids::string_generator()(s, s + size);
} }
} // namespace uuids } // namespace uuids