stdcpp/tsrc/Boost_test/math/test/src/common_factor_test.cpp
changeset 22 ddc455616bd6
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 57 2efc27d87e1c
equal deleted inserted replaced
18:47c74d1534e1 22:ddc455616bd6
    55     BOOST_STATIC_CONSTANT(int,id = ID);
    55     BOOST_STATIC_CONSTANT(int,id = ID);
    56 
    56 
    57     // Lifetime management (use automatic destructor and copy constructor)
    57     // Lifetime management (use automatic destructor and copy constructor)
    58     my_wrapped_integer( int_type const &v = int_type() )  : v_( v )  {}
    58     my_wrapped_integer( int_type const &v = int_type() )  : v_( v )  {}
    59 
    59 
       
    60 #ifdef __ARMCC__
       
    61 #pragma diag_suppress 177
       
    62 #endif
    60     // Accessors
    63     // Accessors
    61     int_type  value() const  { return this->v_; }
    64     int_type  value() const  { return this->v_; }
    62 
    65 
    63     // Operators (use automatic copy assignment)
    66     // Operators (use automatic copy assignment)
    64     operator bool_type() const  { return this->v_ ? &self_type::v_ : 0; }
    67     operator bool_type() const  { return this->v_ ? &self_type::v_ : 0; }
    82     self_type &operator<<=(self_type const &r){this->v_ <<= r.v_; return *this;}
    85     self_type &operator<<=(self_type const &r){this->v_ <<= r.v_; return *this;}
    83     self_type &operator>>=(self_type const &r){this->v_ >>= r.v_; return *this;}
    86     self_type &operator>>=(self_type const &r){this->v_ >>= r.v_; return *this;}
    84     self_type &operator &=(self_type const &r) {this->v_ &= r.v_; return *this;}
    87     self_type &operator &=(self_type const &r) {this->v_ &= r.v_; return *this;}
    85     self_type &operator |=(self_type const &r) {this->v_ |= r.v_; return *this;}
    88     self_type &operator |=(self_type const &r) {this->v_ |= r.v_; return *this;}
    86     self_type &operator ^=(self_type const &r) {this->v_ ^= r.v_; return *this;}
    89     self_type &operator ^=(self_type const &r) {this->v_ ^= r.v_; return *this;}
       
    90 
    87 
    91 
    88     // Input & output
    92     // Input & output
    89     friend std::istream & operator >>( std::istream &i, self_type &x )
    93     friend std::istream & operator >>( std::istream &i, self_type &x )
    90     { return i >> x.v_; }
    94     { return i >> x.v_; }
    91 
    95