Skip to content
Snippets Groups Projects
Commit ab175198 authored by Jö Fahlke's avatar Jö Fahlke
Browse files

Merge branch 'remove-shared-ptr-test-no-nullptr-fallback' into 'master'

[shared_ptrtest.cc] Remove fallback for compilers without nullptr

See merge request core/dune-common!483
parents 2f7c97a6 9a39b445
No related branches found
No related tags found
No related merge requests found
......@@ -150,13 +150,7 @@ int main(){
assert(bar);
// test constructor from nullptr
#ifndef HAVE_NULLPTR
#warning Construction of shared_ptr from a nullptr will not work as compiler
#warning does not support the latter.
shared_ptr<double> bar_null=shared_ptr<double>();
#else
shared_ptr<double> bar_null(nullptr);
#endif
assert(!bar_null);
assert(!bar_null.get());
......
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