template struct Poco::Util::Units::Internal::Convert

Overview

Converts T1 to T2. Moreā€¦

#include <Units.h>

template <
    typename T1,
    typename T2
    >
struct Convert
{
    // methods

    poco_static_assert((Convertible<T1, T2>::Value));

    template <typename V>
    static
    V
    fn(const V& v);
};

Detailed Documentation

Converts T1 to T2.

If you really want to implement your own conversion routine, specialize this template. The default implementation falls through to Convert2. If this fails, then T1 is not Convertible to T2: