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)
Is TMP really faster if the recusion depth is very deep?
I made a simple sqrt struct using TMP. It goes like :
template <int N, int i>
struct sqrt {
static const int val = (i*i <= N && (i + 1)*(i + 1) > N) ? i : sqrt<N, i - 1 >...

Hashnut
Votes: 0
Answers: 2
Is it possible to define a group of template parameters and specialize it conditionally
struct TypeA {
using data_t = int;
enum { thread_create = pthread_create }; // ???
};
struct TypeB {
using data_t = double;
enum { thread_create = another_kind_of_thread_create }; // ...

Yves
Votes: 0
Answers: 2
Update Template Parameter/Recast Template With New Parameter
I'm creating a tree of templated typenames. I am using tuples for the trees structure. Every Node in the tree that is not a leaf will contain a tuple of typenames containing other Nodes and Leaves. Th...
Ryoku
Votes: 0
Answers: 1
Why can't I std::apply for a member function
I'm trying to develop a wrapper to help people use pthread on calling any member function.
template <typename>
struct signature;
template <typename C, typename R, typename... Args>
struct...

Yves
Votes: 0
Answers: 2