|
|
|
|||||
|
problems with VC8.0
Hi!
I don't know exactly if this case matches to the bug that was fixed with one of the patches, thus I'd like to post the trouble code here. If I try to compile the slice2cpp-ed code of this module: Code:
module TestModule
{
dictionary<string, Ice::ByteSeq> FileMap;
interface TestInterface
{
FileMap returnMyMap();
};
};
Code:
void
TestModule::__read(::IceInternal::BasicStream* __is, ::TestModule::FileMap& v, ::TestModule::__U__FileMap)
{
::Ice::Int sz;
__is->readSize(sz);
while(sz--)
{
::std::pair<const ::std::string, ::Ice::ByteSeq> pair;
__is->read(const_cast< ::std::string&>(pair.first));
::TestModule::FileMap::iterator __i = v.insert(v.end(), pair);
::std::pair<const ::Ice::Byte*, const ::Ice::Byte*> _____i->second;
__is->read(_____i->second);
::std::vector< ::Ice::Byte>(_____i->second.first, _____i->second.second).swap(__i->second);
}
}
Code:
.\test.cpp(112) : error C2143: syntax error : missing ';' before '->'
.\test.cpp(113) : error C2819: type 'std::pair<_Ty1,_Ty2>' does not have an overloaded member 'operator ->'
with
[
_Ty1=const Ice::Byte *,
_Ty2=const Ice::Byte *
]
did you intend to use '.' instead?
.\test.cpp(113) : error C2232: '->std::pair<_Ty1,_Ty2>::second' : left operand has 'struct' type, use '.'
with
[
_Ty1=const Ice::Byte *,
_Ty2=const Ice::Byte *
]
.\test.cpp(114) : error C2819: type 'std::pair<_Ty1,_Ty2>' does not have an overloaded member 'operator ->'
with
[
_Ty1=const Ice::Byte *,
_Ty2=const Ice::Byte *
]
did you intend to use '.' instead?
.\test.cpp(114) : error C2232: '->std::pair<_Ty1,_Ty2>::second' : left operand has 'struct' type, use '.'
with
[
_Ty1=const Ice::Byte *,
_Ty2=const Ice::Byte *
]
.\test.cpp(114) : error C2228: left of '.first' must have class/struct/union
.\test.cpp(114) : error C2819: type 'std::pair<_Ty1,_Ty2>' does not have an overloaded member 'operator ->'
with
[
_Ty1=const Ice::Byte *,
_Ty2=const Ice::Byte *
]
did you intend to use '.' instead?
.\test.cpp(114) : error C2232: '->std::pair<_Ty1,_Ty2>::second' : left operand has 'struct' type, use '.'
with
[
_Ty1=const Ice::Byte *,
_Ty2=const Ice::Byte *
]
.\test.cpp(114) : error C2228: left of '.second' must have class/struct/union
.\test.cpp(114) : error C2228: left of '.swap' must have class/struct/union
regs, Stephan
__________________
Stephan Stapel Software Architect Author of 'Verteilte Internet-Anwendungen mit Ice', ix 07/2005 Author of 'Webbasierte Anwendungen mit IcePHP', ix, 06/2006 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| some problems with dll | simpley | Help Center | 1 | 01-21-2005 04:18 AM |
| Hello example problems | jpm | Help Center | 1 | 06-02-2003 04:26 PM |