Update boost_has_nl_types_h.ipp

clang 5 complains that comparing a `nl_catd` to an integer is not allowed.

./boost_has_nl_types_h.ipp:20:11: error: ordered comparison between pointer and zero ('nl_catd' (aka '__nl_cat_d *') and 'int')
   if(cat >= 0) catclose(cat);
This commit is contained in:
Marshall Clow
2017-05-19 12:38:14 -06:00
committed by GitHub
parent c03303bdcb
commit eec62a1162

View File

@ -17,7 +17,7 @@ namespace boost_has_nl_types_h{
int test()
{
nl_catd cat = catopen("foo", 0);
if(cat >= 0) catclose(cat);
if(cat != (nl_catd)-1) catclose(cat);
return 0;
}