diff --git a/src/util.cpp b/src/util.cpp index 9d00960..0ee1ec5 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -329,7 +329,7 @@ std::ostream& operator<<(std::ostream& strm, const SockAddr& addr) } namespace pvxs {namespace impl { -namespace detail { +namespace idetail { template<> unsigned short as_str::op(const char *s) diff --git a/src/utilpvt.h b/src/utilpvt.h index fa22ed6..e3b0024 100644 --- a/src/utilpvt.h +++ b/src/utilpvt.h @@ -35,26 +35,26 @@ struct SB { SB& operator<<(const T& i) { strm< struct as_str {PVXS_API static T op(const char *s);}; -} // namespace detail +} // namespace idetail template inline T lexical_cast(const char *s) { - return detail::as_str::op(s); + return idetail::as_str::op(s); } template inline T lexical_cast(const std::string& s) { - return detail::as_str::op(s.c_str()); + return idetail::as_str::op(s.c_str()); } -namespace detail { +namespace idetail { template struct Range { I a, b; @@ -79,13 +79,13 @@ struct Range { EPICS_ALWAYS_INLINE iterator end() const { return iterator{b}; } EPICS_ALWAYS_INLINE iterator cend() const { return end(); } }; -} // namespace detail +} // namespace idetail template -constexpr detail::Range range(I end) { return detail::Range{I(0), end}; } +constexpr idetail::Range range(I end) { return idetail::Range{I(0), end}; } template -constexpr detail::Range range(I begin, I end) { return detail::Range{begin, end}; } +constexpr idetail::Range range(I begin, I end) { return idetail::Range{begin, end}; } #ifdef _WIN32 # define RWLOCK_TYPE SRWLOCK