Fix a bug in SizeTyped templating

A second template parameter 'F' was previously added to SizeTyped, but
was not correspondingly added to the argument passed for the 'Sub'
parameter of BaseSize.
This commit is contained in:
Moonchild 2023-10-30 16:22:02 +01:00 committed by roytam1
commit 3bdb386b6e

View file

@ -285,7 +285,7 @@ typedef IntSizeTyped<UnknownUnits> IntSize;
template<class units, class F = Float>
struct SizeTyped :
public BaseSize< F, SizeTyped<units> >,
public BaseSize< F, SizeTyped<units, F> >,
public units {
static_assert(IsPixel<units>::value,
"'units' must be a coordinate system tag");