|
Boost Users : |
Subject: Re: [Boost-users] [rational] numeric_limits not specialized
From: Daryle Walker (darylew_at_[hidden])
Date: 2013-08-20 06:43:25
Ticket 9017 added: <https://svn.boost.org/trac/boost/ticket/9017>. If you want, you can visit that web page to register yourself to get updates.
Iâll try to get at it (and the other reports) in the near-future, after adding some bug reports of my own, and my current project.
Daryle W.
Sent from Windows Mail
From: Michael Olea
Sent: âMondayâ, âAugustâ â19â, â2013 â7â:â15â âPM
To: boost-users_at_[hidden]
Hi.
I have some template code that needs slightly different behavior when it is instantiated
with exact types like int or boost::rational rather than when it is instantiated with
floating point types. The compile-time test depends on std::numeric_limits<T>::is_exact.
I was surprised when this came back false for boost::rational until I found that
std::numeric_limits<boost::rational<long>>::is_specialized
is false. Shouldn't boost::rational specialize numeric_limits?
I'm using boost 1.54.0 with clang: Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
compiling for C++1.
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net