From aa91f8ce290353d6eb246a3b7c3da54d9c32158c Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Mon, 19 Mar 2012 14:16:33 +0900 Subject: [PATCH] fix sprout::uuid::udl::_uuid --- sprout/uuid/udl.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sprout/uuid/udl.hpp b/sprout/uuid/udl.hpp index 0d11c924..f8279a64 100644 --- a/sprout/uuid/udl.hpp +++ b/sprout/uuid/udl.hpp @@ -15,17 +15,17 @@ namespace sprout { // // _uuid // - SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(char const* s, std::size_t) { - return sprout::uuids::string_generator()(s); + SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(char const* s, std::size_t size) { + return sprout::uuids::string_generator()(s, s + size); } - SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(wchar_t const* s, std::size_t) { - return sprout::uuids::string_generator()(s); + SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(wchar_t const* s, std::size_t size) { + return sprout::uuids::string_generator()(s, s + size); } - SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(char16_t const* s, std::size_t) { - return sprout::uuids::string_generator()(s); + SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(char16_t const* s, std::size_t size) { + return sprout::uuids::string_generator()(s, s + size); } - SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(char32_t const* s, std::size_t) { - return sprout::uuids::string_generator()(s); + SPROUT_CONSTEXPR sprout::uuids::uuid operator "" _uuid(char32_t const* s, std::size_t size) { + return sprout::uuids::string_generator()(s, s + size); } } // namespace uuids