From 4e8de5ab12b47a94ee4ae69a2ff348bd0a95498f Mon Sep 17 00:00:00 2001 From: Vlad Gheorghiu Date: Mon, 14 Aug 2023 17:13:34 -0400 Subject: [PATCH] fix in types.hpp --- CHANGES | 1 + include/types.hpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGES b/CHANGES index df11ddf2a..56028fde7 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,6 @@ Pre-release - Docker update, see the ["docker/"] directory + - Fix in ["types.hpp"] for defaulting types when not using CMake Version 4.3.3 - 8 August 2023 - Minor bugfix in pyqpp setup.py that prevented pip install from remote diff --git a/include/types.hpp b/include/types.hpp index 3a0bf83c8..875767c86 100644 --- a/include/types.hpp +++ b/include/types.hpp @@ -57,6 +57,8 @@ using idx = unsigned int; using idx = unsigned long int; #elif defined(QPP_IDX_ULONG_LONG) using idx = unsigned long long int; +#else // build without CMake +using idx = std::size_t; #endif static_assert(std::is_integral_v, "Type must be integral"); static_assert(sizeof(idx) > 1, "Type must be at least 2 bytes long"); @@ -74,6 +76,8 @@ using bigint = int; using bigint = long int; #elif defined(QPP_BIGINT_LONG_LONG) using bigint = long long int; +#else // build without CMake +using bigint = long long int; #endif static_assert(std::is_integral_v, "Type must be integral"); static_assert(std::is_signed_v, "Type must be signed"); @@ -90,6 +94,8 @@ using realT = float; using realT = double; #elif defined(QPP_FP_LONG_DOUBLE) using realT = long double; +#else // build without CMake +using realT = double; #endif static_assert(std::is_floating_point_v, "Type myst be floating-point");