~ubuntu-branches/ubuntu/maverick/aspectc++/maverick

« back to all changes in this revision

Viewing changes to Puma/tests/test7.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*********************************************
2
 
 ** partial class template specialization   **
3
 
 ** and argument deduction against partial  **
4
 
 ** class template specialization arguments **
5
 
 *********************************************/
6
 
 
7
 
template <int I>
8
 
struct Y {
9
 
};
10
 
 
11
 
template <class T>
12
 
struct X {
13
 
};
14
 
 
15
 
template <int I>
16
 
struct X< Y<I> > {     // <= I has to be deduced to 0
17
 
  typedef Y<I> TYPE;   // <= Y<0> has to be instantiated
18
 
};
19
 
 
20
 
X< Y<0> > x;