template-function Questions
1
Solved
I have this function header:
template <
bool src_alpha,
int sbpp, int dbpp,
typename T1, typename T2,
Color (*getFunc)(T1 data, Uint8* addr),
void (*putFunc)(T2 data, Uint8* addr, Color c)...
Niggling asked 25/12, 2011 at 13:39
1
Solved
I have no problem passing the address of a function template specialization to a regular template function:
template <typename T>
void f(T) {}
template <typename A, typename B>
void f...
Gifted asked 12/9, 2011 at 21:25
1
Solved
Consider next example :
#include <iostream>
template< int a >
void foo();
int main(int argn, char* argv[])
{
foo<1>();
}
template<>
void foo<1>()
{
std::cout<...
Cystoscope asked 6/5, 2011 at 14:14
© 2022 - 2024 — McMap. All rights reserved.