summaryrefslogtreecommitdiff
path: root/src/ctor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctor.h')
-rw-r--r--src/ctor.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ctor.h b/src/ctor.h
index bac1e3a..921bced 100644
--- a/src/ctor.h
+++ b/src/ctor.h
@@ -62,6 +62,7 @@ enum class toolchain
none,
gcc,
clang,
+ msvc,
};
struct output_file
@@ -85,7 +86,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)
{
([&]
{
@@ -205,7 +206,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