@@ -42,9 +42,9 @@ namespace etl
4242
4343constexpr auto VERSION_MAJOR = 0 ;
4444constexpr auto VERSION_MINOR = 8 ;
45- constexpr auto VERSION_PATCH = 0 ;
45+ constexpr auto VERSION_PATCH = 1 ;
4646constexpr auto VERSION = (VERSION_MAJOR * 10000 ) + (VERSION_MINOR * 100 ) + VERSION_PATCH;
47- constexpr std::string_view VERSION_STRING = " 0.8.0 " ;
47+ constexpr std::string_view VERSION_STRING = " 0.8.1 " ;
4848
4949// / @brief Ditch those old C style for loops and iterate over your enums safely with ranged for loops.
5050// /
@@ -444,11 +444,6 @@ template <typename Tag, typename FundamentalType> class TaggedFundamental
444444 }
445445};
446446
447- // / @brief User of etl should not use anything in the detail namespace, SourceCodeLocation location type only has to be
448- // / used in one of the constructors of an error class which implements etl::BaseError
449- namespace detail
450- {
451-
452447// / @brief Holds useful runtime source code location information for use in Errors.
453448// /
454449// / @details Should not be used directly, rather the user should pass the `etl::RUNTIME_INFO`
@@ -500,15 +495,13 @@ class SourceCodeLocation
500495 std::string m_func;
501496};
502497
503- } // namespace detail
504-
505498// / @brief Wrapper macro which constructs an instance of SourceCodeLocation in-place
506499// / and guarantees that the accurate file, function name, and line number will be
507500// / reported.
508501#ifdef __linux__
509- #define RUNTIME_INFO detail:: SourceCodeLocation (__FILE__, __LINE__, static_cast <const char *>(__PRETTY_FUNCTION__))
502+ #define RUNTIME_INFO SourceCodeLocation (__FILE__, __LINE__, static_cast <const char *>(__PRETTY_FUNCTION__))
510503#else
511- #define RUNTIME_INFO detail:: SourceCodeLocation (__FILE__, __LINE__, static_cast <const char *>(__func__))
504+ #define RUNTIME_INFO SourceCodeLocation (__FILE__, __LINE__, static_cast <const char *>(__func__))
512505#endif
513506
514507// / @brief Base Abstract Error for use with the Result and DynError types.
@@ -531,7 +524,7 @@ class BaseError
531524 // /
532525 // / @param `msg` the error message
533526 // / @param `slc` the source code location object
534- BaseError (const std::string_view &msg, const detail:: SourceCodeLocation &slc) noexcept : m_msg(msg)
527+ BaseError (const std::string_view &msg, const SourceCodeLocation &slc) noexcept : m_msg(msg)
535528 {
536529 m_info.append (" Error: " )
537530 .append (msg)
0 commit comments