From 2266d64f042bc97b54e7e50dcaac730bcc3ab4c3 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 19 Jun 2024 13:07:39 -0400 Subject: [PATCH] add raw type string --- CMakeLists.txt | 2 +- LICENSE | 4 ++-- include/blt/std/allocator.h | 2 +- include/blt/std/utility.h | 6 ++++++ src/blt/std/error.cpp | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 01ffd6d..4ec452b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.20) include(cmake/color.cmake) -set(BLT_VERSION 0.17.13) +set(BLT_VERSION 0.17.14) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/LICENSE b/LICENSE index dd0d9fc..649f944 100644 --- a/LICENSE +++ b/LICENSE @@ -187,7 +187,7 @@ measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or +the covered work, and you disclaim any intention to limit operation_t or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. @@ -331,7 +331,7 @@ requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and +adversely affects the operation_t of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, diff --git a/include/blt/std/allocator.h b/include/blt/std/allocator.h index 77d8c2a..255d775 100644 --- a/include/blt/std/allocator.h +++ b/include/blt/std/allocator.h @@ -596,7 +596,7 @@ namespace blt case EPERM: BLT_WRITE("The prot argument asks for PROT_EXEC but the mapped area " "belongs to a file on a filesystem that was mounted no-exec."); - BLT_WRITE("Or The operation was prevented by a file seal"); + BLT_WRITE("Or The operation_t was prevented by a file seal"); BLT_WRITE("Or The MAP_HUGETLB flag was specified, but the caller " "was not privileged (did not have the CAP_IPC_LOCK capability) " "and is not a member of the sysctl_hugetlb_shm_group group; " diff --git a/include/blt/std/utility.h b/include/blt/std/utility.h index edf4f8a..c2c46bd 100644 --- a/include/blt/std/utility.h +++ b/include/blt/std/utility.h @@ -60,6 +60,12 @@ namespace blt { return demangle(typeid(T).name()); } + + template + static BLT_CPP20_CONSTEXPR inline std::string type_string_raw() + { + return typeid(T).name(); + } //#define BLT_LAMBDA(type, var, code) [](const type& var) -> auto { return code; } //#define BLT_LAMBDA(var, code) [](var) -> auto { return code; } diff --git a/src/blt/std/error.cpp b/src/blt/std/error.cpp index dc20517..cb6d4c7 100644 --- a/src/blt/std/error.cpp +++ b/src/blt/std/error.cpp @@ -69,7 +69,7 @@ namespace blt::error BLT_WARN("Network is unreachable"); break; case ENOTSOCK: - BLT_WARN("Socket operation on non-socket"); + BLT_WARN("Socket operation_t on non-socket"); break; case EPROTOTYPE: BLT_WARN("Protocol wrong type for socket");