Skip to content

Commit

Permalink
Change the name of integral_constant because of this bug microsoft/Di…
Browse files Browse the repository at this point in the history
  • Loading branch information
KStocky committed Jun 2, 2024
1 parent ecf1f61 commit 80bf436
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
template<typename T, T v>
struct integral_constant
struct my_integral_constant
{
static const T value = v;
using value_type = T;
using type = integral_constant;
using type = my_integral_constant;
};

using true_type = integral_constant<bool, true>;
using false_type = integral_constant<bool, false>;
using true_type = my_integral_constant<bool, true>;
using false_type = my_integral_constant<bool, false>;

template<typename T, typename U>
struct is_same : false_type
Expand Down

0 comments on commit 80bf436

Please sign in to comment.