mytest.cpp: In instantiation of 'const bool boost::tti::detail::has_member_data_private_data::value': mytest.cpp:21: instantiated from 'boost::tti::detail::has_member_data_private_data' mytest.cpp:21: instantiated from 'boost::tti::has_member_data_private_data' mytest.cpp:29: instantiated from here mytest.cpp:9: error: 'int A::private_data' is private mytest.cpp:21: error: within this context mytest.cpp:9: error: 'int A::private_data' is private mytest.cpp:21: error: within this context mytest.cpp:9: error: 'int A::private_data' is private mytest.cpp:21: error: within this context mytest.cpp:9: error: 'int A::private_data' is private mytest.cpp:21: error: within this context mytest.cpp: In static member function 'static boost::type_traits::yes_type boost::tti::detail::has_member_data_private_data::check(boost::tti::detail::has_member_data_private_data::helper<(& U::private_data)>*) [with U = A, T = int A::*, C = A]': mytest.cpp:9: error: 'int A::private_data' is private mytest.cpp:21: error: within this context mytest.cpp: At global scope: mytest.cpp: In instantiation of 'const bool boost::tti::detail::has_member_data_protected_data::value': mytest.cpp:22: instantiated from 'boost::tti::detail::has_member_data_protected_data' mytest.cpp:22: instantiated from 'boost::tti::has_member_data_protected_data' mytest.cpp:30: instantiated from here mytest.cpp:12: error: 'int A::protected_data' is protected mytest.cpp:22: error: within this context mytest.cpp:12: error: 'int A::protected_data' is protected mytest.cpp:22: error: within this context mytest.cpp:12: error: 'int A::protected_data' is protected mytest.cpp:22: error: within this context mytest.cpp:12: error: 'int A::protected_data' is protected mytest.cpp:22: error: within this context mytest.cpp: In static member function 'static boost::type_traits::yes_type boost::tti::detail::has_member_data_protected_data::check(boost::tti::detail::has_member_data_protected_data::helper<(& U::protected_data)>*) [with U = A, T = int A::*, C = A]': mytest.cpp:12: error: 'int A::protected_data' is protected mytest.cpp:22: error: within this context