Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1216: problems compiling template class using is_class and is_arithmetic
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-09-10 09:56:05
#1216: problems compiling template class using is_class and is_arithmetic
-------------------------------+--------------------------------------------
Reporter: sheff | Owner: johnmaddock
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: type_traits
Version: Boost 1.34.1 | Severity: Problem
Resolution: fixed | Keywords:
-------------------------------+--------------------------------------------
Changes (by johnmaddock):
* status: new => closed
* resolution: => fixed
Comment:
That needs to be:
template <class T1>
class B : public T1
{
public:
template <typename T2>
typename boost::enable_if<boost::is_class<T2>, void>::type
f(T2& t)
{
}
template <typename T2>
typename boost::enable_if<boost::is_arithmetic<T2>, void>::type
f(T2& t)
{
}
};
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1216#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC