id summary reporter owner description type status milestone component version severity resolution keywords cc 8152 operator_bool write access violation error in MSVC builds rossmpublic@… Peter Dimov "Using the unspecified_bool_type operator and the following pragma is causing write access violations with the Microsoft compiler: #pragma pointers_to_members(full_generality, virtual_inheritance) This behavior has been confirmed for boost_1_44_0 using an msvc90 build and for boost_1_53_0 using a msvc10 build. Here is the code that reproduces the error: {{{ //------- main.cpp --------- #pragma pointers_to_members(full_generality, virtual_inheritance) #include ""TestClass.h"" int main(int argc, char* argv[]) { IntPointer p(new int); bool isValid = p; TestClass test; test.setInt(p); return 0; } //------ TestClass.h ---------- #pragma once #include typedef boost::shared_ptr IntPointer; class TestClass { public: void setInt(IntPointer p); private: IntPointer m_p; }; //----- TestClass.cpp #include ""TestClass.h"" void TestClass::setInt(IntPointer p) { m_p = p; bool isValid = p; } }}} " Bugs closed To Be Determined smart_ptr Boost 1.53.0 Problem invalid Peter Dimov