Commit a8b94a45 authored by Max Kellermann's avatar Max Kellermann

fs/Traits: add `noexcept`

parent f1b6deb7
......@@ -25,7 +25,7 @@
template<typename Traits>
typename Traits::string
BuildPathImpl(typename Traits::const_pointer_type a, size_t a_size,
typename Traits::const_pointer_type b, size_t b_size)
typename Traits::const_pointer_type b, size_t b_size) noexcept
{
assert(a != nullptr);
assert(b != nullptr);
......@@ -50,7 +50,7 @@ BuildPathImpl(typename Traits::const_pointer_type a, size_t a_size,
template<typename Traits>
typename Traits::const_pointer_type
GetBasePathImpl(typename Traits::const_pointer_type p)
GetBasePathImpl(typename Traits::const_pointer_type p) noexcept
{
#if !CLANG_CHECK_VERSION(3,6)
/* disabled on clang due to -Wtautological-pointer-compare */
......@@ -65,7 +65,7 @@ GetBasePathImpl(typename Traits::const_pointer_type p)
template<typename Traits>
typename Traits::string
GetParentPathImpl(typename Traits::const_pointer_type p)
GetParentPathImpl(typename Traits::const_pointer_type p) noexcept
{
#if !CLANG_CHECK_VERSION(3,6)
/* disabled on clang due to -Wtautological-pointer-compare */
......@@ -87,7 +87,7 @@ GetParentPathImpl(typename Traits::const_pointer_type p)
template<typename Traits>
typename Traits::const_pointer_type
RelativePathImpl(typename Traits::const_pointer_type base,
typename Traits::const_pointer_type other)
typename Traits::const_pointer_type other) noexcept
{
assert(base != nullptr);
assert(other != nullptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment