Skip to content

Commit

Permalink
Fixed bug regarding lvalues in print functions (-> 0.45.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chlorie committed Nov 9, 2024
1 parent ed0a9a3 commit afff47b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
4 changes: 2 additions & 2 deletions lib/include/clu/text/print.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace clu
template <typename... Args>
void print(std::FILE* file, const std::format_string<Args...> fmt, Args&&... args)
{
clu::vprint(file, fmt.get(), std::make_format_args(static_cast<Args&&>(args)...));
clu::vprint(file, fmt.get(), std::make_format_args(args...));
}

template <typename... Args>
Expand All @@ -30,7 +30,7 @@ namespace clu
template <typename... Args>
void println(std::FILE* file, std::format_string<Args...> fmt, Args&&... args)
{
std::string text = std::vformat(fmt.get(), std::make_format_args(static_cast<Args&&>(args)...));
std::string text = std::vformat(fmt.get(), std::make_format_args(args...));
text.push_back('\n');
print_nonformatted(file, text);
}
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit afff47b

Please sign in to comment.