Commit 860f3b53 authored by Tom Niget's avatar Tom Niget

Make user types default constructible (for now)

parent d5d148a6
...@@ -21,6 +21,7 @@ class ClassVisitor(NodeVisitor): ...@@ -21,6 +21,7 @@ class ClassVisitor(NodeVisitor):
yield "template<typename... T> type(T&&... args) {" yield "template<typename... T> type(T&&... args) {"
yield "__init__(std::forward<T>(args)...);" yield "__init__(std::forward<T>(args)...);"
yield "}" yield "}"
yield "type() {}"
yield "type(const type&) = delete;" yield "type(const type&) = delete;"
yield "type(type&&) = delete;" yield "type(type&&) = delete;"
yield "};" yield "};"
......
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