reactivemarkets / toolbox-cpp

The Reactive C++ Toolbox is an open source library of C++20 components designed for efficient, asynchronous network applications on the Linux platform.
https://reactivemarkets.github.io/toolbox-cpp/
Other
21 stars 20 forks source link

Use type constructor on default from_string #96

Closed rfernandes closed 4 years ago

rfernandes commented 4 years ago

The common case of TypeTraits::from_string should use the target type's constructor, this removes the need to specialize it for those that support String-type constructors, ex: Path.