Find a file
0xA672 1a251b1bef
Update README with test details and images
Added testing information and images to README.
2026-06-08 07:28:59 +08:00
LICENSE Initial commit 2026-05-31 10:21:25 +08:00
README.md Update README with test details and images 2026-06-08 07:28:59 +08:00
test.cpp Implement CountsDifferentiator for array differences 2026-05-31 10:22:18 +08:00

C++20

Install fmt if not already installed

git clone https://github.com/fmtlib/fmt.git
cd fmt
mkdir build && cd build
cmake ..
make -j$(nproc)
sudo make install

Then build

g++ -std=c++20 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion \
    -Wshadow -Wold-style-cast -Wcast-qual -Wuseless-cast \
    -Wdouble-promotion -Wformat=2 -Wnull-dereference -Wduplicated-cond \
    test.cpp -lfmt -o test

Tested with GCC 16.1.0 on Ubuntu (x86_64), C++20 mode. image image

Can work.

Note: I genuinely didn't know std::format had already absorbed {fmt} in C++20 when I first wrote this.
However, std::print is not available until C++23, and I'm used to fmt::print.
Thats why this project still depends on the {fmt} library — old habits, and one missing function. 😅