Commit 8fc11bcb authored by Damien L-G's avatar Damien L-G

Assert that RAII has no default constructor below the comment about performance degradation

parent ca18f396
......@@ -32,6 +32,7 @@ public:
}
// NOTE for some reason defining the default constructor degraded performance
// of eval by 15%
static_assert(!std::is_default_constructible<RAII>::value);
RAII(RAII const &) = delete;
RAII &operator=(RAII &) = delete;
RAII(RAII &&o) {
......
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