Boost logo

Boost :

From: PARK KISOO (aska_at_[hidden])
Date: 2001-07-30 03:46:50


I tried to use regex in my recent work.
with Visual studio .net beta2 (is it vc7, isn't it?)

I had compile errors like this:

  cl /c /nologo /ML /W3 /GX /Oityb1 /GF /Gy /I..\..\..\ /DWIN32 /DNDEBUG
        /D_MBCS /D_LIB /YX /FD -Fpvc6/vc6-re300/vc6-re300.pch -Fo./vc6/vc6-re300/ -Fdvc
        6/vc6-re300.pdb ../src/c_regex_traits.cpp
       ..\..\..\boost\smart_ptr.hpp(371) : error C2065: 'T' : undeclared identifier
       ..\..\..\boost\smart_ptr.hpp(371) : error C2687: cannot define a nested UDT of a
      template class out of line
       ..\..\..\boost\smart_ptr.hpp(371) : fatal error C1903: unable to recover from previous error(s);
      stopping compilation
      NMAKE : fatal error U1077: 'cl' : return code '0x2'

-- where in smart_ptr.hpp
370 template<typename T>
371 struct less< boost::shared_ptr<T> >
372 : binary_function<boost::shared_ptr<T>, boost::shared_ptr<T>, bool>
373 {
374 bool operator()(const boost::shared_ptr<T>& a,
375 const boost::shared_ptr<T>& b) const
376 { return less<T*>()(a.get(),b.get()); }
377 };

anyway, with VC6 , It was compiled clearly.
Does anyone know what's wrong?


- Kisoo

Boost list run by bdawes at, gregod at, cpdaniel at, john at