diff --git a/Polyhedron/demo/Polyhedron/include/CGAL/Point_set_3.h b/Polyhedron/demo/Polyhedron/include/CGAL/Point_set_3.h index 6853d65b4c5..90282329735 100644 --- a/Polyhedron/demo/Polyhedron/include/CGAL/Point_set_3.h +++ b/Polyhedron/demo/Polyhedron/include/CGAL/Point_set_3.h @@ -27,7 +27,7 @@ #include -#include +#include namespace CGAL { @@ -749,13 +749,13 @@ public: std::string properties() const { std::ostringstream oss; - oss << "CGAL::Point_set_3<" << boost::core::demangle(typeid(Point).name()) + oss << "CGAL::Point_set_3<" << CGAL::demangle(typeid(Point).name()) << "> with " << size() << " point(s) (" << number_of_removed_points() << " removed point(s) waiting to be deleted)" << std::endl; std::vector prop = m_base.properties(); for (std::size_t i = 0; i < prop.size(); ++ i) oss << " * \"" << prop[i] << "\" property of type " - << boost::core::demangle(m_base.get_type(prop[i]).name()) << std::endl; + << CGAL::demangle(m_base.get_type(prop[i]).name()) << std::endl; return oss.str(); } diff --git a/STL_Extension/include/CGAL/demangle.h b/STL_Extension/include/CGAL/demangle.h new file mode 100644 index 00000000000..ee9dfaf8cfe --- /dev/null +++ b/STL_Extension/include/CGAL/demangle.h @@ -0,0 +1,44 @@ +// Copyright (c) 2016 GeometryFactory (France). +// All rights reserved. +// +// This file is part of CGAL (www.cgal.org); you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public License as +// published by the Free Software Foundation; either version 3 of the License, +// or (at your option) any later version. +// +// Licensees holding a valid commercial license may use this file in +// accordance with the commercial license agreement provided with the software. +// +// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE +// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +// +// $URL$ +// $Id$ +// +// Author(s) : Simon Giraudot + +#ifndef CGAL_DEMANGLE_H +#define CGAL_DEMANGLE_H + +#if BOOST_VERSION >= 105600 +#include +#else +#include +#endif + +namespace CGAL { + + +inline std::string demangle(const char* name) +{ +#if BOOST_VERSION >= 105600 + return boost::core::demangle(name); +#else + return boost::utils::detail::demangle(name); +#endif +} + + +} //namespace CGAL + +#endif // CGAL_DEMANGLE_H