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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -