Commit 07d5a4af authored by Dominik Charousset's avatar Dominik Charousset

Allow unsafe initialization of typed behaviors

parent 72c8862b
...@@ -167,6 +167,12 @@ public: ...@@ -167,6 +167,12 @@ public:
set(detail::make_behavior(x, xs...)); set(detail::make_behavior(x, xs...));
} }
struct unsafe_init { };
typed_behavior(unsafe_init, behavior bhvr) : bhvr_(std::move(bhvr)) {
// nop
}
inline void swap(typed_behavior& other) { inline void swap(typed_behavior& other) {
bhvr_.swap(other.bhvr_); bhvr_.swap(other.bhvr_);
} }
......
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