/[svn]/linuxsampler/trunk/src/common/optional.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/optional.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 457 by schoenebeck, Mon Mar 14 22:29:46 2005 UTC revision 810 by schoenebeck, Tue Nov 22 11:49:40 2005 UTC
# Line 71  namespace LinuxSampler { Line 71  namespace LinuxSampler {
71                  if (!arg.initialized) throw LinuxSamplerException("optional variable not initialized");                  if (!arg.initialized) throw LinuxSamplerException("optional variable not initialized");
72                  this->data  = arg.data;                  this->data  = arg.data;
73                  initialized = true;                  initialized = true;
74                    return *this;
75              }              }
76    
77              optional& operator =(const T& arg) {              optional& operator =(const T& arg) {
78                  this->data  = arg;                  this->data  = arg;
79                  initialized = true;                  initialized = true;
80                    return *this;
81              }              }
82    
83              const T& operator *() const throw (LinuxSamplerException) { return get(); }              const T& operator *() const throw (LinuxSamplerException) { return get(); }

Legend:
Removed from v.457  
changed lines
  Added in v.810

  ViewVC Help
Powered by ViewVC