Show
Ignore:
Timestamp:
10/19/09 22:24:45 (15 years ago)
Author:
smidl
Message:

Compilation and minor extensions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/base/bdmbase.h

    r660 r665  
    149149        friend std::ostream &operator<< ( std::ostream &os, const RV &rv ); 
    150150 
    151         string to_string() {ostringstream o; o << this; return o.str();} 
     151        string to_string() const {ostringstream o; o << *this; return o.str();} 
    152152         
    153153        //! total size of a random variable 
     
    303303        //! Length of the output vector 
    304304        int dimy; 
     305        //! Length of the input vector 
     306        int dimc; 
    305307public: 
    306308        //!default constructor 
     
    317319        int dimension() const { 
    318320                return dimy; 
     321        } 
     322        //! access function 
     323        int dimensionc() const { 
     324                return dimc; 
    319325        } 
    320326}; 
     
    671677                return downsize; 
    672678        } 
     679        //! for future use 
     680        virtual ~datalink(){} 
    673681}; 
    674682 
     
    12191227                } 
    12201228                string opt; 
    1221                 if ( !UI::get ( opt, set, "options", UI::optional ) ) { 
     1229                if ( UI::get ( opt, set, "options", UI::optional ) ) { 
    12221230                        set_options ( opt ); 
    12231231                }