summaryrefslogtreecommitdiffhomepage
path: root/include/ocl/tproc/detail/config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/ocl/tproc/detail/config.hpp')
-rw-r--r--include/ocl/tproc/detail/config.hpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/ocl/tproc/detail/config.hpp b/include/ocl/tproc/detail/config.hpp
index 873cced..455a5d3 100644
--- a/include/ocl/tproc/detail/config.hpp
+++ b/include/ocl/tproc/detail/config.hpp
@@ -8,16 +8,26 @@
#ifndef __OCL_TPROC_CONFIG
#define __OCL_TPROC_CONFIG
+#include <boost/assert/source_location.hpp>
#include <ocl/detail/config.hpp>
#include <ocl/equiv.hpp>
#include <ocl/option.hpp>
#include <ocl/smart_ptr.hpp>
#include <boost/core/detail/string_view.hpp>
-#include <iterator>
namespace ocl::tproc
{
-}
+ namespace detail
+ {
+
+ inline void throw_invalid_range(const auto sc = BOOST_CURRENT_LOCATION)
+ {
+ throw std::out_of_range(sc.to_string());
+ }
+
+ } // namespace detail
+
+} // namespace ocl::tproc
#endif // ifndef __OCL_TPROC_CONFIG