Changeset 433 for trunk/ADOL-C/include


Ignore:
Timestamp:
Jun 18, 2013 4:14:18 PM (6 years ago)
Author:
kulshres
Message:

Copy constructor of adub should never be called.

badouble copy constructor is called via adouble but all the work is done
in adouble so don't do anything in badouble. Copying the location is
definitely the wrong thing to do here.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/include/adolc/adouble.h

    r429 r433  
    8383public:
    8484    /*--------------------------------------------------------------------------*/
    85     badouble( const badouble& a ) {
    86         location = a.location;
    87         isInit = true;
    88     }
    89     ;           /* ctor */
     85    badouble( const badouble& a ) {};           /* ctor */
    9086
    9187    inline locint loc( void ) const;                         /* Helpful stuff */
     
    250246    friend ADOLC_DLL_EXPORT class advector;
    251247    friend ADOLC_DLL_EXPORT class adubref;
    252 #if GCC_VERSION >= 4003
    253248    adub( adub const &) {}
    254 #endif
    255249protected:
    256250    adub( locint lo ):badouble(lo) {};
Note: See TracChangeset for help on using the changeset viewer.