[core] GCC 4.9 is unable to deduce ctors when using bracket init

This commit is contained in:
Bruno de Oliveira Abinader
2017-07-11 19:15:10 +03:00
parent 21031b624f
commit 2fae373fc9
15 changed files with 169 additions and 25 deletions

View File

@@ -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;