From 65a8349aa5526d071b18cd4d42586c46faaa3823 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 24 Nov 2025 02:13:48 +0100 Subject: feat! breaking changes for OCL v1.0.48. Signed-off-by: Amlal El Mahrouss --- examples/equiv/CMakeLists.txt | 12 ++++++++++++ examples/equiv/equiv.cc | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 examples/equiv/CMakeLists.txt create mode 100644 examples/equiv/equiv.cc (limited to 'examples/equiv') diff --git a/examples/equiv/CMakeLists.txt b/examples/equiv/CMakeLists.txt new file mode 100644 index 0000000..4a374ce --- /dev/null +++ b/examples/equiv/CMakeLists.txt @@ -0,0 +1,12 @@ + +cmake_minimum_required(VERSION 3.15...3.31) + +project( + Equiv + VERSION 1.0 + LANGUAGES CXX) + +add_executable(Equiv equiv.cc) + +set_property(TARGET Equiv PROPERTY CXX_STANDARD 20) +target_include_directories(Equiv PUBLIC ../../include/ocl) diff --git a/examples/equiv/equiv.cc b/examples/equiv/equiv.cc new file mode 100644 index 0000000..0c68e21 --- /dev/null +++ b/examples/equiv/equiv.cc @@ -0,0 +1,19 @@ +/* + string checksum example + written by Amlal El Mahrouss. + licensed under the Boost Software License + */ + +#include +#include + +/* finally test it */ +int main(int argc, char** argv) +{ + std::cout << std::boolalpha; + std::cout << ocl::equiv::is_same::value << std::endl; + std::cout << ocl::equiv::is_same::value << std::endl; + std::cout << ocl::equiv::is_same::value << std::endl; + + return 0; +} -- cgit v1.2.3