-
Prevent 'most vexing parse' issue · 782dbebfNicolas Capens authored
A statement like "If(Bool(b)) {}" would lead to interpreting part of its maco expansion "IfElseData ifElse__(Bool(b));" as a function declaration. See https://en.wikipedia.org/wiki/Most_vexing_parse Fix it by using C++11 universal initialization syntax. Bug: b/155148722 Change-Id: I64d0a28f64a4735a61776a44dfb7560d2854cde3 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/49808 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:Antonio Maiorano <amaiorano@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
782dbebf
×