Skip to content

Commit

Permalink
Attempt to fix vscode build
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Mar 11, 2024
1 parent 2f630fa commit 64b07e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ncrystal_core/include/NCrystal/NCVariant.hh
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ namespace NCRYSTAL_NAMESPACE {

namespace NCRYSTAL_NAMESPACE {

static_assert(std::is_default_constructible<Variant<double,int>>::value,"");
static_assert(!std::is_default_constructible<Variant<double,int,VariantAllowEmpty::No>>::value,"");

template <class T1, class T2, VariantAllowEmpty ALLOW_EMPTY>
struct Variant<T1,T2,ALLOW_EMPTY>::Impl {

Expand Down Expand Up @@ -323,6 +320,9 @@ namespace NCRYSTAL_NAMESPACE {
return *this;
}

static_assert(std::is_default_constructible<Variant<double,int>>::value,"");
static_assert(!std::is_default_constructible<Variant<double,int,VariantAllowEmpty::No>>::value,"");

}

#endif

0 comments on commit 64b07e6

Please sign in to comment.