Boost C++ Libraries: Ticket #9570: TTI doesn't support inheritance or at least this is not documented anywhere https://svn.boost.org/trac10/ticket/9570 <p> 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): </p> <p> #include "boost/tti/has_member_function.hpp" </p> <p> struct Container { </p> <blockquote> <p> void func() {} </p> </blockquote> <p> }; </p> <p> struct Container2 : public Container { </p> <blockquote> <p> using Container::func; <em> doesn't help </em></p> </blockquote> <p> }; </p> <p> <em>typedef Container container_t; </em> ok typedef Container2 container_t; <em> fail </em></p> <p> BOOST_TTI_HAS_MEMBER_FUNCTION(func) </p> <p> static_assert( </p> <blockquote> <p> has_member_function_func&lt; </p> <blockquote> <p> container_t, void, boost::mpl::vector&lt;&gt; </p> <blockquote class="citation"> <p> ::value, </p> </blockquote> </blockquote> <p> "fail" </p> </blockquote> <p> ); </p> <p> int main(int, char<strong>) { return 0; } </strong></p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9570 Trac 1.4.3 viboes Mon, 13 Jan 2014 22:00:10 GMT component changed; owner set https://svn.boost.org/trac10/ticket/9570#comment:1 https://svn.boost.org/trac10/ticket/9570#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Edward Diener</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">tti</span> </li> </ul> Ticket Edward Diener Tue, 04 Mar 2014 15:33:48 GMT <link>https://svn.boost.org/trac10/ticket/9570#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9570#comment:2</guid> <description> <p> You are right about this. I am working on a method so that inheritance can be supported. I will try to get this implemented in the next release of Boost if it works out. Nonetheless it should be mentioned in the documentation. Thanks for pointing this out. </p> </description> <category>Ticket</category> </item> </channel> </rss>