Skip to content

Commit b43d4aa

Browse files
committed
[WasmDSL] Remove constraint from Variables default c'tor.
1 parent 6daa02a commit b43d4aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/WasmDSL.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2842,7 +2842,7 @@ class variable_storage<T, VariableKind::Global, /* CanBeNull= */ false>
28422842
{
28432843
using type = T;
28442844

2845-
friend struct Variable<T, VariableKind::Global, false>;
2845+
friend struct Variable<T, VariableKind::Global, false>; // to be usable by the respective Variable
28462846

28472847
::wasm::Name name_; ///< the global's unique name
28482848
::wasm::Type type_; ///< the type of the global variable
@@ -2929,7 +2929,7 @@ struct Variable<T, Kind, CanBeNull>
29292929

29302930
public:
29312931
/** Default-constructs a new `Variable`. */
2932-
Variable() requires requires { storage_type(); } = default;
2932+
Variable() = default;
29332933

29342934
Variable(const Variable&) = delete;
29352935
Variable(Variable &&other)

0 commit comments

Comments
 (0)