id summary reporter owner description type status milestone component version severity resolution keywords cc 5944 Compiler error when primitive type for data used bschaeling Sebastian Redl "This doesn't compile because the primitive type ''int'' is used as a second template parameter: {{{#!c++ boost::property_tree::basic_ptree pt, pt2; pt.swap(pt2); }}} The reason is this code in version 1.47.0 of : {{{#!c++ void basic_ptree::swap(basic_ptree &rhs) { m_data.swap(rhs.m_data); // Void pointers, no ADL necessary std::swap(m_children, rhs.m_children); } }}} m_data.swap() should be replaced with std::swap() or boost::swap() to make it possible to use primitive types for data." Bugs closed Boost 1.48.0 property_tree Boost 1.47.0 Problem fixed