Ben aşağıdaki test:bir işaretçi boş olup olmadığını kontrol Boost.Test
BOOST_CHECK_NE(pointer, nullptr);
derleme yanlış nedir
nedeniyle başarısız olur ve ben boş göstericilerle için nasıl test etmeliyim?/xxx/include/boost/test/tools/detail/print_helper.hpp:50:14: error: ambiguous overload for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream}’ and ‘std::nullptr_t’)
false
için, boş olmayan bir işaretçi dolaylı
true
dönüştürür
BOOST_CHECK(pointer);
bir boş gösterici dolaylı dönüştürür: