From 0333f2eca72dfa464a71033363bfd15773718b48 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 2 Apr 2025 21:54:55 +0200 Subject: WIP --- src/ctor.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ctor.h') diff --git a/src/ctor.h b/src/ctor.h index f145eef..68994b9 100644 --- a/src/ctor.h +++ b/src/ctor.h @@ -60,6 +60,7 @@ enum class toolchain none, gcc, clang, + msvc, }; struct output_file @@ -83,7 +84,7 @@ struct source std::is_same_v || std::is_same_v ) && ...) - constexpr source(Args && ... arg) + constexpr source(Args ... arg) { ([&] { @@ -127,6 +128,7 @@ enum class cxx_opt warn_shadow, // -Wshadow warn_extra, // -Wextra warnings_as_errors, // -Werror + exceptions, // -fexceptions generate_dep_tree, // -MMD no_link, // -c include_path, // -I @@ -202,7 +204,7 @@ public: std::is_same_v || std::is_same_v ) && ...) - constexpr flag(Args && ... _arg) + constexpr flag(Args ... _arg) { constexpr std::size_t n = sizeof...(Args); int state{}; // 0: opt, 1: arg1, 2: arg2, 3: error -- cgit v1.2.3