Skip to content

Commit 1f6aed7

Browse files
committed
Workaround that fixes dangling reference warning (refs #352)
1 parent c6794d4 commit 1f6aed7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

source/glbinding-aux/source/types_to_string.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ std::ostream & operator<<(std::ostream & stream, const Value<gl::GLbitfield> & v
201201
template <>
202202
std::ostream & operator<<(std::ostream & stream, const Value<gl::GLboolean> & value)
203203
{
204-
const auto & name = aux::Meta::getString(value.value());
204+
const auto glvalue = value.value();
205+
const auto & name = aux::Meta::getString(glvalue);
205206
stream.write(name.c_str(), static_cast<std::streamsize>(name.size()));
206207

207208
return stream;

0 commit comments

Comments
 (0)