python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Non-type template parameter with template parameter pack
I am checking the validity of a string whose valid values are known at compile time. I have the following simplified code snippet:
#include <cassert>
#include <string>
template <char c...

Tomáš Krupa
Votes: 0
Answers: 1
Can we just have one function with variadic templates?
I am taking the code from the solution to one of the old question from here
#include <utility>
#include <iostream>
class Test {
public:
Test() {
std::cout << "ctor&quo...
Test
Votes: 0
Answers: 2
C++17 can variadic template class define new type and variadic data member?
#include <iostream>
template <typename T0, typename T1>
struct Clazz {
void doSomething(const std::shared_ptr<T0>& p0,
const std::shared_ptr<T1>& p1) {...
xishvai
Votes: 0
Answers: 2
statemachine using variadic template overloading
I am trying to build a statemachine in C++ using variadic templates.
class Event {};
template<typename... TEvents>
class StateMachineActionHandler
{
public:
void action() = delete;
};
temp...
Frank
Votes: 0
Answers: 1