c++ - Is it possible to force `round` to be in namespace std? -
i need declare own function double round(double,double)
extern "c"
, conflicts double round(double)
declared in <bits/mathcalls.h>
(gcc 5.4.0). , because include <cstdint>
.
there preprocessor variable _glibcpp_use_namespaces, seems enforce namespace std around round, defining yields error
/usr/include/c++/5/cwchar:141:11: error: ‘::btowc’ has not been declared
when <map>
included, need later on.
is there other way?
it looks there no official way prevent round
in global namespace , existence of _glibcpp_use_namespaces
in gcc's implementation of standard library indicates such possibility indeed, not find documentation preprocessor variable , if possible in older version broken.
Comments
Post a Comment