diff options
| author | Bent Bisballe Nyeng <deva@aasimon.org> | 2025-04-02 21:54:55 +0200 |
|---|---|---|
| committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2025-12-29 12:22:47 +0100 |
| commit | 0333f2eca72dfa464a71033363bfd15773718b48 (patch) | |
| tree | 817051e224f074961931dcc451d13e19f93e7377 /src/ctor.h | |
| parent | d7f6ce94c5cbdf03e1630c150f2fd34af9f15349 (diff) | |
WIPmsvc
Diffstat (limited to 'src/ctor.h')
| -rw-r--r-- | src/ctor.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -60,6 +60,7 @@ enum class toolchain none, gcc, clang, + msvc, }; struct output_file @@ -83,7 +84,7 @@ struct source std::is_same_v<Args, ctor::source_type> || std::is_same_v<Args, ctor::output_file> ) && ...) - 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<arg> @@ -202,7 +204,7 @@ public: std::is_same_v<Args, ctor::toolchain> || std::is_same_v<Args, T> ) && ...) - 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 |
