Requires C++23 or higher.
ZTD_DISABLE_GLOBAL_TYPES
Disable adding global namespaced types
ebuild at https://github.com/thermitegod/overlay/tree/master/dev-cpp/ztd
Versioned ztd.wrap files are in the directory wraps/
Example meson usage below, just add to meson.build
# ztd system
ztd_dep = dependency('ztd', required : true)
# ztd subproject
ztd_proj = subproject('ztd')
ztd_dep = ztd_proj.get_variable('ztd_dep')
# ztd use system or subproject
ztd_dep = dependency('ztd', required : false)
if not ztd_dep.found() # using subproject
ztd_proj = subproject('ztd')
ztd_dep = ztd_proj.get_variable('ztd_dep')
endif
Copy include/ztd/
into your project.
meson setup ./build
ninja -C ./build
ninja -C ./build install
meson setup -Dtests=true -Db_sanitize=address,undefined -Db_lundef=false ./build
ninja -C ./build test
# or run the test suite directly
./build/tests/test_suite
./build/tests/test_suite_logger
meson setup -Dbenchmarks=true -Db_sanitize=address,undefined -Db_lundef=false ./build
ninja -C ./build
# running the benchmarks suite directly
./build/benchmarks/benchmark_suite
./build/benchmarks/benchmark_suite_checksum