Poco::Util::Units::Internal

template < typename T1, typename T2 >

struct Convert

Library: Util
Package: Units
Header: Poco/Util/Units.h

Description

Converts T1 to T2. If you really want to implement your own conversion routine, specialize this template. The default implementation falls through to Convert2.

Member Summary

Member Functions: fn

Member Functions

fn static inline

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

Variables

checkConvertible

static_assert < Convertible < T1, T2 >::Value > checkConvertible;

If this fails, then T1 is not Convertible to T2: