how to call Explicit Instantiation Declarations function from main()in template? can u explain with
Posted
by user323422
on Stack Overflow
See other posts from Stack Overflow
or by user323422
Published on 2010-04-28T12:10:35Z
Indexed on
2010/04/28
12:13 UTC
Read the original article
Hit count: 129
c++
template class Array { public:void mf(); #1 }; template class Array; // explicit instantiation #2 template void Array::mf(); // explicit instantiation #3
void main() { Array a; // implicit instantiation
// my question is how to call mf() in #2 (explict declaration)from main() }
© Stack Overflow or respective owner