about -fno-elide-constructors:
https://blog.csdn.net/XiyouLinux_Kangyijie/article/details/78939291
https://www.cnblogs.com/xkfz007/archive/2012/07/21/2602110.html
how to use in cmake:
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-elide-constructors")