~ubuntu-branches/ubuntu/raring/blitz++/raring

« back to all changes in this revision

Viewing changes to compiler/tempkey.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Konstantinos Margaritis
  • Date: 2005-02-28 20:25:01 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050228202501-3i4f2sknnprsqfhz
Tags: 1:0.8-4
Added missing build-depends (Closes: #297323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// 'template' keyword qualifier
2
 
// BZ_TEMPLATE_KEYWORD_QUALIFIER
3
 
 
4
 
class Foo {
5
 
public:
6
 
    Foo() { };
7
 
    template<class T> static T convert() { return T(); }
8
 
};
9
 
 
10
 
int main()
11
 
{
12
 
    double z = Foo::template convert<double>();
13
 
    return 0;
14
 
}
15