Do not return a reference to NULL in poison_category(), to make the test pass on clang with variant=release

This commit is contained in:
Peter Dimov 2018-01-29 19:29:53 +02:00
parent c6a977c99f
commit d8a6730d6e

View File

@ -176,7 +176,7 @@ namespace
return false;
}
boost::system::error_category* poison_category_aux() { return 0; }
boost::system::error_category* poison_category_aux() { return reinterpret_cast<boost::system::error_category*>(8); }
boost::system::error_category& poison_category() { return *poison_category_aux(); }
// compile-only two argument "do-the-right-thing" tests