答案也是肯定的,yalantinglibs 的反射库兼容了 C++17,支持的最低版本是 gcc9,不过需要宏定义一个额外的宏才能使用反射 API(C++20 高版本编译器中是不需宏的),比如之前的例子: structsimple{intcolor;intid;std::stringstr;intage;};YLT_REFL(simple,color,id,str,age);intmain() {usingnamespaceylt::reflec...
find_package(yalantinglibs CONFIG REQUIRED)target_link_libraries(main PRIVATE yalantinglibs::yalantinglibs) Manually Install Yalantinglibs is a head-only library. You can just copy./include/yltdirectory into your project. But we suggest you use cmake to install it. ...
The target of yaLanTingLibs: provide very easy and high performance modern C++ libraries for developers, it can help to quickly build high performance applications. OS (Compiler Version)Status Ubuntu 22.04 (clang 14.0.0) Ubuntu 22.04 (gcc 11.2.0) ...
//github.com/JYLeeLYJ/yalantinglibs.git GIT_TAG feat/fetch#optional ( default master / main )GIT_SHALLOW 1#optional ( --depth=1 )) FetchContent_MakeAvailable(yalantinglibs)add_executable(main main.cpp)target_link_libraries(main yalantinglibs::yalantinglibs)target_compile_features(mainPRIVATE...
yaLanTingLibs is a collection of modern c++ util libraries, now it contains struct_pack, struct_json, struct_xml, struct_yaml, struct_pb, easylog, coro_rpc, coro_io, coro_http and async_simple, more and more cool libraries will be added into yaLanTingLibs in the future....
yaLanTingLibs is a collection of modern c++ util libraries, now it contains struct_pack, struct_json, struct_xml, struct_yaml, struct_pb, easylog, coro_rpc, coro_io, coro_http and async_simple, more and more cool libraries will be added into yaLanTingLibs in the future....
yaLanTingLibs is a collection of modern c++ util libraries, now it contains struct_pack, struct_json, struct_xml, struct_yaml, struct_pb, easylog, coro_rpc, coro_io, coro_http and async_simple, more and more cool libraries will be added into yaLanTingLibs in the future....
yaLanTingLibs is a collection of C++20 libraries, now it contains struct_pack, struct_json, struct_xml, struct_pb, easylog, coro_rpc, coro_http and async_simple, more and more cool libraries will be added into yaLanTingLibs(such as http.) in the future....
yaLanTingLibs is a collection of modern c++ util libraries, now it contains struct_pack, struct_json, struct_xml, struct_yaml, struct_pb, easylog, coro_rpc, coro_io, coro_http and async_simple, more and more cool libraries will be added into yaLanTingLibs in the future....
A collection of modern C++ libraries, include coro_rpc, struct_pack, struct_json, struct_xml, struct_pb, easylog, async_simple - yalantinglibs/src at main · alibaba/yalantinglibs