diff --git a/CMakeLists.txt b/CMakeLists.txt index b3ad224..db2dad4 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.22) +set(BLT_VERSION 0.17.23) set(BLT_TEST_VERSION 0.0.1) set(BLT_TARGET BLT) diff --git a/include/blt/std/utility.h b/include/blt/std/utility.h index 749a2cc..dafbea3 100644 --- a/include/blt/std/utility.h +++ b/include/blt/std/utility.h @@ -97,6 +97,9 @@ namespace blt /** * means that the return value is solely a function of the arguments, * and if any of the arguments are pointers, then the pointers must not be dereferenced. + * Calls to functions whose return value is not affected by changes to the observable state of the program + * and that have no observable effects on such state other than + * to return a value may lend themselves to optimizations such as common subexpression elimination. */ #define BLT_ATTRIB_NO_SIDE_EFFECTS __attribute__((const)) /**