template struct Poco::Util::Units::Internal::Convert3

Overview

Converts T1 to T2. Moreā€¦

#include <Units.h>

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

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

Detailed Documentation

Converts T1 to T2.

Stage 3 - performed after Stage 1 and Stage 2. The reason we perform Convert in stages is so that the compiler can resolve templates in the order we want it to.

Methods

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

The default implementation assumes that the two quantities are in compatible Units up to some scaling factor.

Find the scaling factor and apply it.