Commit b75f8d55 authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[common][optscalar] make bool op explicit

parent f0238da8
......@@ -48,7 +48,7 @@ struct OptionalScalar
T value() const
{ return value_; }
operator bool() const
explicit operator bool() const
{
using std::isnan;
return !isnan(value_);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment