From afff47b7e60fc88050f7888df4e74823cb44d42d Mon Sep 17 00:00:00 2001 From: Chlorie Date: Sat, 9 Nov 2024 21:08:14 +0800 Subject: [PATCH] Fixed bug regarding lvalues in print functions (-> 0.45.2) --- CMakeLists.txt | 2 +- lib/include/clu/text/print.h | 4 ++-- vcpkg.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bec91d2..12af96c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20) -project(clu LANGUAGES CXX VERSION 0.45.1) +project(clu LANGUAGES CXX VERSION 0.45.2) set(CMAKE_SCRIPTS "${PROJECT_SOURCE_DIR}/cmake") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SCRIPTS}) diff --git a/lib/include/clu/text/print.h b/lib/include/clu/text/print.h index c7d895e..e442ce7 100644 --- a/lib/include/clu/text/print.h +++ b/lib/include/clu/text/print.h @@ -18,7 +18,7 @@ namespace clu template void print(std::FILE* file, const std::format_string fmt, Args&&... args) { - clu::vprint(file, fmt.get(), std::make_format_args(static_cast(args)...)); + clu::vprint(file, fmt.get(), std::make_format_args(args...)); } template @@ -30,7 +30,7 @@ namespace clu template void println(std::FILE* file, std::format_string fmt, Args&&... args) { - std::string text = std::vformat(fmt.get(), std::make_format_args(static_cast(args)...)); + std::string text = std::vformat(fmt.get(), std::make_format_args(args...)); text.push_back('\n'); print_nonformatted(file, text); } diff --git a/vcpkg.json b/vcpkg.json index 016a6d8..96ad951 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,6 +1,6 @@ { "name": "clu", - "version-string": "0.45.1", + "version-string": "0.45.2", "description": "Chlorie's collection of small utilities", "features": { "build-tests": {