diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-28 21:50:29 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-28 21:50:29 +0100 |
| commit | 3df7cc4d199c263d5d9a606ddc211f4935d23e4c (patch) | |
| tree | e84cd2c06239280f4864149d1799ae745fad042a /include/ocl/detail | |
| parent | a185f437f42bd0215f212d11a0e23575945ea448 (diff) | |
feat: API: argument fixes for `throw_*` family of free functions.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/ocl/detail')
| -rw-r--r-- | include/ocl/detail/config.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ocl/detail/config.hpp b/include/ocl/detail/config.hpp index 9afbc22..9df8597 100644 --- a/include/ocl/detail/config.hpp +++ b/include/ocl/detail/config.hpp @@ -58,10 +58,12 @@ namespace ocl namespace detail { - inline void throw_runtime_error(const boost::string_view& loc = BOOST_CURRENT_LOCATION.to_string()) + + inline void throw_runtime_error(const boost::source_location& loc = BOOST_CURRENT_LOCATION) { throw std::runtime_error(loc.to_string()); } + } // namespace detail } // namespace ocl |
