cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Template Question
Template Question
Jan 22, 2013 at 5:03pm UTC
Script Coder
(1468)
Say I have a template outer class and I want the inner class to share that template type:
1
2
3
4
5
6
template
<
class
T>
class
A {
class
B { T value; }; };
Is this possible?
Jan 22, 2013 at 5:09pm UTC
JLBorges
(13770)
Try it, and you would know the answer.
Jan 22, 2013 at 5:29pm UTC
Script Coder
(1468)
I am not currently at my pc, so trying it would be impossible, will try when I get home though.
Jan 22, 2013 at 7:19pm UTC
naraku9333
(2163)
http://ideone.com/sxzZKF
Topic archived. No new replies allowed.