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

« back to all changes in this revision

Viewing changes to compiler/explicit.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
 
// 'explicit' keyword
2
 
// BZ_EXPLICIT
3
 
 
4
 
class vector {
5
 
  public:
6
 
    explicit vector(double)
7
 
    { }
8
 
};
9
 
 
10
 
int main()
11
 
{
12
 
    double c = 5.0;
13
 
    vector x(c);
14
 
    return 0;
15
 
}
16