summaryrefslogtreecommitdiff
path: root/src/ctor.h
diff options
context:
space:
mode:
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