Boost.FunctionType

Recently, I had to use Boost.FunctionType as a companion library of Boost.TTI Specifically, I needed to check for the presence of a const-qualified id() member function (returning a std::size_t). Due to the const-qualification, the plain solution: using has_id_type = typename detail::has_member_function_id&…

Being friends

Since the syntax friend class B doesn't declare a member of the class A, it doesn't matter where you write it, class B is a friend of class A. [via @Nawaz]…