Ignore:
Timestamp:
09/19/08 13:15:42 (6 years ago)
Author:
jdsiiro
Message:

Moving the PackBuf? support from PackBuf?.h to stl_auxillary.h (see r1511)
broke Any.h. As Anys provide PackBuf? support for std::vector, Any.h
must now include stl_auxillary.h, which in turn includes Ereal.h and
NumArray?.h, which are Serializable (requiring Serialize.h, which
requires Any.h). This circular header dependency breaks the use of
Anys.

As a stopgap, this commit is moving NumArray? and Ereal dependencies out
of stl_auxillary ind into their respective header files (breaking the
dependency loop). Chalk this up to another "good reason" to deprecate
PackBuf? support in Anys (Any.h should really not depend on anything
outside of the STL).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • utilib/trunk/src/adt/utilib/Ereal.h

    r1480 r1513  
    30153015} 
    30163016 
     3017// 
     3018// Stream operators from stl_auxiliary.h 
     3019// 
     3020 
     3021/// Stream operator for filling a vector with a given value 
     3022template <class TYPE> 
     3023std::vector<utilib::Ereal<TYPE> >& operator<< (std::vector<utilib::Ereal<TYPE> >& vec, const TYPE& val) 
     3024{ 
     3025typename std::vector<utilib::Ereal<TYPE> >::iterator curr = vec.begin(); 
     3026typename std::vector<utilib::Ereal<TYPE> >::iterator last = vec.end(); 
     3027while (curr != last) { 
     3028  *curr = val; 
     3029  ++curr; 
     3030  } 
     3031return vec; 
     3032} 
     3033 
    30173034 
    30183035#endif 
Note: See TracChangeset for help on using the changeset viewer.