Boost logo

Boost Users :

From: Arno Schäfer (arno.schaefer_at_[hidden])
Date: 2004-11-11 08:52:54


Hi,

if I want use the boost libs in an existing MFC/AFX environment I have a lot of
compiling problems, what seems to depend on the order of includes. One problem
what I see, but I don't understand, is the following compile error:

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
cl /MDd /W3 /GR /GX /Zi /Od /I ...bunch of
includes... /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_SECDLL" /D "_AFXDLL" /D "_
MBCS" /D "_GXDLL" /D "NOMINMAX" /D "_SECNOMSG" /D "_GXNOMSG" /D "_SFLNOMSG" /Fp"
D:\temp\debug\GUIClient/Plato.pch" /YX"stdafx.h" /Fo"D:\temp\debug\GUIClient/" /
Fd"D:\temp\debug\GUIClient/" /FD /Zm200 /GZ /c "F:\Gui+Client\src\AboutDlg.cpp"
AboutDlg.cpp
Note: Using precompiled header
Automatically linking with RWUXThemeSD.lib
..\..\PlatoServer\Basics\boost\inc\boost/detail/iterator.hpp(326) : error
C2039: 'difference_type' : is not a member of 'Iterator'
        ..\..\..\libs\stingray\objective_studio\include\foundation\Patterns\Iter
ator.h(77) : see declaration of 'Iterator'
        ..\..\PlatoServer\Basics\boost\inc\boost/detail/iterator.hpp(331) : see
reference to class template
instantiation 'boost::detail::standard_iterator_traits<Iterator>' being compiled
...

So it looks like, that the template parameter "Iterator"
in "boost::detail::standard_iterator_traits<Iterator>" conflicts with the
template class "stingray::foundation::Iterator" in some header files from the
GUI control stuff, what was included before the boost header. How is this
possible, what has the template parameter "Iterator" in the
namespace "boost::detail" to do with the template class "Iterator" in the
namespace "stingray::foundation" has anybody an explaination for this?

regards
Arno


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