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

« back to all changes in this revision

Viewing changes to Puma/tests/test13.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 function **
3
 
 ********************************************/
4
 
 
5
 
void foo() {}
6
 
void bar() {}
7
 
 
8
 
template < void (*T)() >
9
 
struct X {
10
 
  X() { T(); }
11
 
};
12
 
 
13
 
template <>
14
 
struct X< &foo > {
15
 
};
16
 
 
17
 
X< &foo > x1;
18
 
X< &bar > x2;