~ubuntu-branches/ubuntu/quantal/aspectc++/quantal

« back to all changes in this revision

Viewing changes to Puma/tests/misc/test14.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
 ** specialization for pointer to member function **
 
3
 ***************************************************/
 
4
 
 
5
struct Y {
 
6
  void foo() {}
 
7
  void bar() {}
 
8
};
 
9
 
 
10
template < void (Y::*T)() >
 
11
struct X {
 
12
  X() { Y y; (y.*T)(); }
 
13
};
 
14
 
 
15
template <>
 
16
struct X< &Y::foo > {
 
17
};
 
18
 
 
19
X< &Y::foo > x1;
 
20
X< &Y::bar > x2;