Skip to content

Commit

Permalink
Fix misuse of constexpr macro
Browse files Browse the repository at this point in the history
  • Loading branch information
foonathan committed Oct 30, 2017
1 parent 1c5b523 commit f6eaf5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/foonathan/memory/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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;
Expand Down

0 comments on commit f6eaf5f

Please sign in to comment.