зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1321412 - Fix a bug in the definition of SizeTyped. r=kats
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. MozReview-Commit-ID: 2pRQXeWMJpP --HG-- extra : rebase_source : c1e71b18fdb303f9684d0c9c26dca2462fa0f62d
This commit is contained in:
Родитель
1633caa488
Коммит
3a6277caff
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче