Boost logo

Boost Users :

From: Muruganathan Annamalai (Annamalai.Muruganathan_at_[hidden])
Date: 2005-01-24 08:13:26


hi,
   Iam using VC6. I had problems using boost serialization library classes
with MFC support for OLE controls. This is what I have,

#include <afxctl.h> // MFC support for OLE Controls

#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>

.............
..............

When I compiled the code I got errors like,

:\boost\boost-1_32\boost/archive/basic_text_iprimitive.hpp(72) : error
C2039: 'char_type' : is not a member of 'IStream'
        D:\Devstudio_6.0\VC98\INCLUDE\objidl.h(4049) : see declaration of
'IStream'
        D:\boost\boost-1_32\boost/archive/basic_text_iprimitive.hpp(121) :
see reference to class template instantiation
'boost::archive::basic_text_iprimitive<IStream>' being compiled
D:\boost\boost-1_32\boost/archive/basic_text_iprimitive.hpp(72) : error
C2065: 'char_type' : undeclared identifier
        D:\boost\boost-1_32\boost/archive/basic_text_iprimitive.hpp(121) :
see reference to class template instantiation
'boost::archive::basic_text_iprimitive<IStream>' being compiled
D:\boost\boost-1_32\boost/archive/basic_text_iprimitive.hpp(73) : error
C2039: 'traits_type' : is not a member of 'IStream'
        D:\Devstudio_6.0\VC98\INCLUDE\objidl.h(4049) : see declaration of
'IStream'

I think, error is because MFC has class called IStream. And the same name
IStream is used as template parameter
in the boost class.

Is there anything I can do to overcome this problem.

annamalai



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net