Function ExceptionTranslatorRegistrar

Synopsis

#include <include/internal/catch_interfaces_exception.h>

template <typename T>
ExceptionTranslatorRegistrar(std::string(*translateFunction)(T &))

Description

No description yet.

Source

Lines 69-73 in include/internal/catch_interfaces_exception.h.

template<typename T>
ExceptionTranslatorRegistrar( std::string(*translateFunction)( T& ) ) {
    getMutableRegistryHub().registerTranslator
        ( new ExceptionTranslator<T>( translateFunction ) );
}





Add Discussion as Guest

Log in