From f2f9e9211c6e4d6941c025e4c82048677569af07 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Thu, 18 Apr 2024 20:56:18 +0200 Subject: [PATCH] fix my stupidity (opposite way stream ops) --- src/osuparser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/osuparser.cpp b/src/osuparser.cpp index a4869fb..dd1ff5d 100644 --- a/src/osuparser.cpp +++ b/src/osuparser.cpp @@ -138,14 +138,14 @@ inline void toLower(std::string &str) { std::string val = checkAndRemove(line, namePascalCased);\ std::stringstream ss(val);\ enum_type value;\ - value << ss;\ + ss >> value;\ ) #define VAR_ENUM_D(section, name, enum_type, default) \ VAR_GENERIC_D(section, name, enum_type::default,\ std::string val = checkAndRemove(line, namePascalCased);\ std::stringstream ss(val);\ enum_type value;\ - value << ss;\ + ss >> value;\ ) #define STRUCT_STREAM_OPS(name, ...) @@ -156,14 +156,14 @@ inline void toLower(std::string &str) { std::string val = checkAndRemove(line, namePascalCased);\ std::stringstream ss(val);\ struct_type value;\ - value << ss;\ + ss >> value;\ ) #define VAR_STRUCT_D(section, name, struct_type, default) \ VAR_GENERIC_D(section, name, default,\ std::string val = checkAndRemove(line, namePascalCased);\ std::stringstream ss(val);\ struct_type value;\ - value << ss;\ + ss >> value;\ ) #define VAR_LIST(section, name, type) \