Commit ce20fe06 authored by Po-Yen, Chen's avatar Po-Yen, Chen
Browse files

Make sure 'Embed' type args are not references

parent 3ab2821d
......@@ -383,6 +383,8 @@ template <typename UpLengths,
typename enable_if<UpLengths::Size() == Coefficients::Size(), bool>::type = false>
struct Embed
{
static_assert(!std::is_reference_v<UpLengths> && !std::is_reference_v<Coefficients>);
static constexpr index_t NDimUp = UpLengths::Size();
using LowerIndex = MultiIndex<1>;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment