Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2008, 4:40:01 PM (16 years ago)
Author:
rgrieder
Message:

gcc test commit again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/util/MultiType.h

    r1729 r1768  
    129129
    130130        virtual void toString(std::ostream& outstream) const = 0;
     131        //virtual void toString(std::ostream& outstream) const = 0;
     132        //inline friend virtual std::ostream& operator <<(std::ostream& outstream, const MT_ValueBase& mtb);
    131133
    132134        MT_Type type_;
     
    238240        template <class T> operator T*() const { return ((T*)this->operator void*()); }
    239241
     242        inline friend std::ostream& operator<<(std::ostream& outstream, const MultiType& mt) { if (mt.value_) { mt.value_->toString(outstream); } return outstream; }
     243
    240244        inline void getValue(char*                 value) const { if (this->value_) { (*value) = (*this->value_); } }
    241245        inline void getValue(unsigned char*        value) const { if (this->value_) { (*value) = (*this->value_); } }
     
    318322};
    319323
    320 _UtilExport inline std::ostream& operator<<(std::ostream& outstream, const MultiType& mt) { if (mt.value_) { mt.value_->toString(outstream); } return outstream; }
     324//_UtilExport inline std::ostream& operator<<(std::ostream& outstream, const MultiType& mt) { if (mt.value_) { mt.value_->toString(outstream); } return outstream; }
    321325
    322326template <> inline bool MultiType::isType<char>()                 const { return (this->value_ && this->value_->type_ == MT_char);        }
Note: See TracChangeset for help on using the changeset viewer.