Throw Mijin Exception instead of std::runtime_error by default in ensure().
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
||||
// public functions
|
||||
//
|
||||
|
||||
template<typename TCondition, typename TException = std::runtime_error, typename... TExceptionArgs>
|
||||
template<typename TCondition, typename TException = Exception, typename... TExceptionArgs>
|
||||
inline decltype(auto) ensure(TCondition&& condition, TExceptionArgs&&... args)
|
||||
{
|
||||
if (!static_cast<bool>(std::forward<TCondition>(condition)))
|
||||
|
||||
Reference in New Issue
Block a user