diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-07-11 19:15:10 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-07-12 20:42:29 +0300 |
commit | 2fae373fc9da1a5ed61b5114d8c982073734826d (patch) | |
tree | 105ce580cc7df0cf9cf0a9997c4702bc76b3faeb /test/algorithm | |
parent | 21031b624ffabf92bf284c830b3d13a3ae045460 (diff) | |
download | qtlocation-mapboxgl-2fae373fc9da1a5ed61b5114d8c982073734826d.tar.gz |
[core] GCC 4.9 is unable to deduce ctors when using bracket init
Diffstat (limited to 'test/algorithm')
-rw-r--r-- | test/algorithm/generate_clip_ids.test.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/algorithm/generate_clip_ids.test.cpp b/test/algorithm/generate_clip_ids.test.cpp index 46a577b994..1ebdccb99e 100644 --- a/test/algorithm/generate_clip_ids.test.cpp +++ b/test/algorithm/generate_clip_ids.test.cpp @@ -7,7 +7,14 @@ using namespace mbgl; struct Renderable { UnwrappedTileID id; ClipID clip; - bool used = true; + bool used; + + Renderable(UnwrappedTileID id_, + ClipID clip_, + bool used_ = true) + : id(std::move(id_)), + clip(std::move(clip_)), + used(used_) {} bool operator==(const Renderable& rhs) const { return id == rhs.id && clip == rhs.clip; |