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