diff --git a/source/glbinding-aux/source/types_to_string.cpp b/source/glbinding-aux/source/types_to_string.cpp index ede00b87..cf4c3b9f 100644 --- a/source/glbinding-aux/source/types_to_string.cpp +++ b/source/glbinding-aux/source/types_to_string.cpp @@ -201,7 +201,8 @@ std::ostream & operator<<(std::ostream & stream, const Value & v template <> std::ostream & operator<<(std::ostream & stream, const Value & value) { - const auto & name = aux::Meta::getString(value.value()); + const auto glvalue = value.value(); + const auto & name = aux::Meta::getString(glvalue); stream.write(name.c_str(), static_cast(name.size())); return stream;