diff --git a/include/foonathan/memory/error.hpp b/include/foonathan/memory/error.hpp index 4b881707..c13dd5bc 100644 --- a/include/foonathan/memory/error.hpp +++ b/include/foonathan/memory/error.hpp @@ -35,7 +35,7 @@ namespace foonathan const void* allocator; /// \effects Creates it by giving it the name of the allocator and a pointer. - FOONATHAN_CONSTEXPR allocator_info(const char* n, const void* alloc) FOONATHAN_NOEXCEPT + FOONATHAN_CONSTEXPR_FNC allocator_info(const char* n, const void* alloc) FOONATHAN_NOEXCEPT : name(n), allocator(alloc) { @@ -44,13 +44,13 @@ namespace foonathan /// @{ /// \effects Compares two \ref allocator_info objects, they are equal, if the \ref allocator is the same. /// \returns The result of the comparision. - friend FOONATHAN_CONSTEXPR bool operator==(const allocator_info& a, + friend FOONATHAN_CONSTEXPR_FNC bool operator==(const allocator_info& a, const allocator_info& b) FOONATHAN_NOEXCEPT { return a.allocator == b.allocator; } - friend FOONATHAN_CONSTEXPR bool operator!=(const allocator_info& a, + friend FOONATHAN_CONSTEXPR_FNC bool operator!=(const allocator_info& a, const allocator_info& b) FOONATHAN_NOEXCEPT { return a.allocator != b.allocator;