Subject: [Boost-bugs] [Boost C++ Libraries] #9570: TTI doesn't support inheritance or at least this is not documented anywhere
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-13 21:05:51
#9570: TTI doesn't support inheritance or at least this is not documented anywhere
-----------------------+------------------------------
Reporter: anonymous | Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.54.0
Severity: Problem | Keywords:
-----------------------+------------------------------
If I didn't know better (not mentioned in TFM) I'd find the behavior of
this program very surprising (g++-mp-4.8 -std=c++0x ..., from macports):
#include "boost/tti/has_member_function.hpp"
struct Container {
void func() {}
};
struct Container2 : public Container {
using Container::func; // doesn't help
};
//typedef Container container_t; // ok
typedef Container2 container_t; // fail
BOOST_TTI_HAS_MEMBER_FUNCTION(func)
static_assert(
has_member_function_func<
container_t,
void,
boost::mpl::vector<>
>::value,
"fail"
);
int main(int, char**) { return 0; }
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9570> 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:50:15 UTC