This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/37276] Trouble with some (C99?) math builtins and namespace std



------- Comment #9 from paolo dot carlini at oracle dot com  2008-08-29 18:46 -------
FWIW, this kind of contortion appear to work, but really I'd rather prefer not
using it...

namespace my_std
{
  inline double
  atan(double __x)
  { return __builtin_atan(__x); }

  inline double
  atanh(double __x)
  { return __builtin_atanh(__x); }
}

namespace std
{
  using ::my_std::atan;
  using ::my_std::atanh;
}

int main()
{
  std::atan(.3);     // works
  std::atanh(.3);    // works
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37276


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]