Skip to content

Commit

Permalink
Merge pull request #21 from stephenswat/bug/nth_backend_sfinaer
Browse files Browse the repository at this point in the history
Fix SFINAE bug in gcc 11
  • Loading branch information
stephenswat authored Jan 12, 2024
2 parents 12c8a37 + 0a410f9 commit 76660e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/core/covfie/core/utility/backend_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#pragma once

#include <cstddef>
#include <variant>

namespace covfie::utility {
template <typename B, std::size_t N, bool = B::is_initial>
Expand All @@ -30,6 +31,7 @@ struct nth_backend<B, 0, true> {

template <typename B, std::size_t N>
struct nth_backend<B, N, true> {
using type = std::monostate;
};

template <typename B, bool = B::is_initial>
Expand Down

0 comments on commit 76660e5

Please sign in to comment.