Add THROW contract call

This commit is contained in:
Vinnie Falco
2015-07-24 12:14:44 -07:00
committed by Edward Hennis
parent 2f5d721ec1
commit 729caaacff

View File

@@ -43,12 +43,11 @@ throwException(
} // detail
template <class Exception,
class... Args>
template <class Exception, class... Args>
void
Throw (Args&&... args)
{
throwException(
detail::throwException(
std::make_exception_ptr(
Exception(std::forward<
Args>(args)...)));
@@ -59,6 +58,11 @@ void
LogicError (
std::string const& how);
/** Called to throw an exception. */
#ifndef THROW
#define THROW(T, arg) Throw<T>(arg)
#endif
} // ripple
#endif