Commit eb183e4a authored by Nicholas Ormrod's avatar Nicholas Ormrod Committed by Pavlo Kushnir

operator::* needs implicit

Summary:
operator::* needs to be explicit, or explicitly labeled
implicit. The build breaks with explicit, so label.

Test Plan: run unit tests

Reviewed By: andrei.alexandrescu@fb.com

Subscribers: sdwilsh, njormrod, folly-diffs@

FB internal diff: D1644176

Tasks: 5486739

Signature: t1:1644176:1414693471:e3a08e27ba27a5ae0e4b9a5e009acf0a16728c45
parent ba88b3f6
...@@ -149,12 +149,11 @@ struct BenchmarkSuspender { ...@@ -149,12 +149,11 @@ struct BenchmarkSuspender {
} }
/** /**
* This helps the macro definition. To get around the dangers of * This is for use inside of if-conditions, used in BENCHMARK macros.
* operator bool, returns a pointer to member (which allows no * If-conditions bypass the explicit on operator bool.
* arithmetic).
*/ */
operator int BenchmarkSuspender::*() const { explicit operator bool() const {
return nullptr; return false;
} }
/** /**
......
Markdown is supported
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