Skip to content
Commit 611fbd0d authored by Limin Tang's avatar Limin Tang
Browse files

Fix incompatbility with C++20



C++20 introduced stricter rules for aggregate initialization: a class or
struct is no longer an aggregate if its constructor is explicitly
defaulted. Define an explicit constructor taking parameters to handle
aggregate initializations in existing code when compiled with C++20.

Change-Id: If0eb78812d4241c870a14f1f4c2ba79c732ff265
Signed-off-by: default avatarLimin <limintang@gmail.com>
parent 1811146b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment