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

« back to all changes in this revision

Viewing changes to Puma/tests/bug340/bug340.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
template<class S>
 
2
void foo(S&) {}
 
3
 
 
4
void bar() {
 
5
  char c;
 
6
  foo(c);   // instantiated as foo(int&) instead of foo(char&)
 
7
}
 
8
 
 
9
template<class T> void f(const T*) {}
 
10
 
 
11
int *p;
 
12
 
 
13
void s()
 
14
{
 
15
  f(p);     // f(const int *)
 
16
}
 
17