Merge branch 'master' of ssh://server.strongds.hu:222/mrtoth/Function

This commit is contained in:
Kjistóf 2016-11-27 14:28:04 +01:00
commit b2ca0431ee
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ private:
virtual ~callable() override {}
};
std::unique_ptr _fun;
std::unique_ptr<callable_base> _fun;
/* kérdés, hogy ezt lehet-e szebben, vagy ez így a state-of-the-art megoldás?
* lent majd látod, de úgy van megoldva, hogy overloadolva van az operator=
* std::nullptr_t-re. próbáltam varázsolni ilyen std::is_null_pointer-rel,
@ -63,4 +63,4 @@ public:
operator bool() const
{ return static_cast<bool>(_fun); }
};
};