Struct StringMaker< T * >

Synopsis

#include <include/internal/catch_tostring.h>

template <typename T>
struct StringMaker<T*>

Description

No description yet.

Methods

convert

Source

Lines 279-289 in include/internal/catch_tostring.h.

template <typename T>
struct StringMaker<T*> {
    template <typename U>
    static std::string convert(U* p) {
        if (p) {
            return ::Catch::Detail::rawMemoryToString(p);
        } else {
            return "nullptr";
        }
    }
};





Add Discussion as Guest

Log in