/dynamic-pointer-cast-benchmark

A simple benchmark to compare std::dynamic_pointer_cast and dynamic_cast

Primary LanguageC++

To compile via command line:

for VC++:

cl -EHsc -std:c++20 -O2 -Fe:bench_vc.exe *.cpp

for GCC (Unix/Linux):

g++ -O2 -std=c++20 -o bench_gcc *.cpp

or for MinGW on Windows:

g++ -O2 -std=c++20 -o bench_gcc.exe *.cpp