id summary reporter owner description type status milestone component version severity resolution keywords cc 7230 access to private method using boost::bind anonymous Peter Dimov "It appears that the privacy of a class method is violated with the use of boost::bind in a template class. $ uname -a Linux myhost.mydomain 2.6.32-220.13.1.el6.x86_64 #1 SMP Thu Mar 29 11:46:40 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux $ g++ --version g++ (GCC) 4.4.6 20110731 (Red Hat 4.4.6-3) {{{ #include #include class base { private: void _private() { std::cout << ""private"" << std::endl; } }; template class templ { public: void onPrivate(T* t) { // boost::bind(&T::_private, t)(); // error: ‘void base::_private()’ is private boost::bind(&base::_private, t)(); } }; int main(int argc, char **argv) { base b; templ ab; ab.onPrivate(&b); // got into the private parts :) // boost::bind(&base::_private, &b)(); // error: ‘void base::_private()’ is private } }}}" Bugs closed To Be Determined bind Boost 1.49.0 Problem invalid bind viboes