boostorg / bind

Boost.org bind module
http://boost.org/libs/bind
27 stars 49 forks source link

Suppress clang warning about 'using namespace boost::placeholders' #12

Closed jhunold closed 9 years ago

jhunold commented 9 years ago

warning: using namespace directive in global context in header [-Wheader-hygiene] The warning is unhelpfull as this a backwards-compatibility fix.

pdimov commented 9 years ago

Out of curiosity, is this a new warning or is it not on by default? Because I'm not seeing it.

jhunold commented 9 years ago

Well, I use -Weverything and disable selected warnings.

jhunold commented 9 years ago

The warning itself is several years old. The earliest discussion is from 2011, and I found a blog post from 2012 mentioning it. Unfortunately a full overview about all flags is missing which is the reason I use -Weverything and disable all warnings which make no sense for my project.

pdimov commented 9 years ago

Well, at least you know about -Weverything. I tried -Wall -Wextra and didn't get -Wheader-hygiene. :-)