Skip to content

Commit 65edf6f

Browse files
fix all of the errors in constexpr_for.hpp
1 parent cd1ee0d commit 65edf6f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

constexpr_for.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#pragma once
2-
31
// Use constexpr while instead.
2+
#pragma once
43

54
namespace mlib
65
{
@@ -23,7 +22,7 @@ namespace mlib
2322
}
2423
else
2524
{
26-
return sequence{ operations... };
25+
return sequence<operations...>{};
2726
}
2827
}
2928

@@ -53,4 +52,4 @@ namespace mlib
5352
x(s);
5453
}
5554
};
56-
} // namespace mlib
55+
} // namespace mlib

0 commit comments

Comments
 (0)