not_implemented.hpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
  3. // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
  4. // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
  5. // This file was modified by Oracle on 2015-2020.
  6. // Modifications copyright (c) 2015-2020, Oracle and/or its affiliates.
  7. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
  8. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  9. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
  10. // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
  11. // Use, modification and distribution is subject to the Boost Software License,
  12. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  13. // http://www.boost.org/LICENSE_1_0.txt)
  14. #ifndef BOOST_GEOMETRY_ALGORITHMS_NOT_IMPLEMENTED_HPP
  15. #define BOOST_GEOMETRY_ALGORITHMS_NOT_IMPLEMENTED_HPP
  16. #include <boost/geometry/core/static_assert.hpp>
  17. #include <boost/geometry/core/tags.hpp>
  18. namespace boost { namespace geometry
  19. {
  20. namespace nyi
  21. {
  22. struct not_implemented_tag {};
  23. template <typename ...Terms>
  24. struct not_implemented_error
  25. {
  26. #ifndef BOOST_GEOMETRY_IMPLEMENTATION_STATUS_BUILD
  27. # define BOOST_GEOMETRY_IMPLEMENTATION_STATUS_BUILD false
  28. #endif
  29. BOOST_GEOMETRY_STATIC_ASSERT(
  30. BOOST_GEOMETRY_IMPLEMENTATION_STATUS_BUILD,
  31. "This operation is not or not yet implemented.",
  32. Terms...);
  33. };
  34. }
  35. template <typename ...Terms>
  36. struct not_implemented
  37. : nyi::not_implemented_tag,
  38. nyi::not_implemented_error<Terms...>
  39. {};
  40. }} // namespace boost::geometry
  41. #endif // BOOST_GEOMETRY_ALGORITHMS_NOT_IMPLEMENTED_HPP