Skip to content
Snippets Groups Projects
Commit e590a9de authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/optional-scalar-operator' into 'master'

[common][optscalar] make bool op explicit

See merge request !2460
parents f0238da8 b75f8d55
No related branches found
No related tags found
1 merge request!2460[common][optscalar] make bool op explicit
......@@ -48,7 +48,7 @@ struct OptionalScalar
T value() const
{ return value_; }
operator bool() const
explicit operator bool() const
{
using std::isnan;
return !isnan(value_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment