Skip to content

Commit

Permalink
Add a default constructor for strong types
Browse files Browse the repository at this point in the history
  • Loading branch information
doom committed Feb 21, 2019
1 parent bbeb6d7 commit 428df47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/st/type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ namespace st
class type_base
{
public:
explicit constexpr type_base() : _t()
{
}

explicit constexpr type_base(const T &t) : _t(t)
{
}
Expand Down

0 comments on commit 428df47

Please sign in to comment.