summaryrefslogtreecommitdiff
path: root/src/ctor.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2025-04-02 21:54:55 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2025-12-29 12:22:47 +0100
commit0333f2eca72dfa464a71033363bfd15773718b48 (patch)
tree817051e224f074961931dcc451d13e19f93e7377 /src/ctor.h
parentd7f6ce94c5cbdf03e1630c150f2fd34af9f15349 (diff)
WIPmsvc
Diffstat (limited to 'src/ctor.h')
-rw-r--r--src/ctor.h6
1 files changed, 4 insertions, 2 deletions
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<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