Skip to content

Commit

Permalink
Use static constexpr member instead of enum in is_iterator trait
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Nov 21, 2024
1 parent 25fb91f commit 3bb6acd
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ namespace pika::traits {

static char test(...);

enum
{
value = sizeof(test(std::declval<T>())) == sizeof(void*)
};
static constexpr bool value = sizeof(test(std::declval<T>())) == sizeof(void*);
};

///////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 3bb6acd

Please sign in to comment.