|
|
|
|||||
|
Sequence Iterator Error Message?
I'm trying to iterate over a sequence passed to a servant and getting a compiler error:
Code:
c:\projects\pdfrenderer\slice\rendereri.cpp(14) : error C2440: 'initializing' : cannot convert from 'std::_Vector_const_iterator<_Ty,_Alloc>' to 'std::_Vector_iterator<_Ty,_Alloc>' Code:
...
sequence<byte> ByteSeq;
struct File {
string name;
ByteSeq contents;
};
sequence<File> FileSeq;
...
Code:
void
RendererLib::RenderSvcI::Render(
const ::RendererLib::Packet& workpacket,
const Ice::Current& current)
{
const RendererLib::FileSeq& files = workpacket.what;
RendererLib::FileSeq::iterator file = files.begin(); // Error here
while (file_itor != workpacket.what.end()) {
File afile = *file_itor;
}
}
|
|
|||||
|
Thanks
Well duh.
I need to go home and get some rest. Sigh. Thanks! |
![]() |
| 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 |
| I have a error message! | terminate | Help Center | 2 | 10-10-2006 11:46 PM |
| Error message on "run" exit | Larry | Help Center | 10 | 07-13-2006 01:54 PM |
| Questions about sanity-check of sequence sizes during sequence unmarshaling | rc_hz | Help Center | 4 | 06-22-2005 10:33 PM |
| Freeze Map iterator should add operator += n -=n | dragzhb | Comments | 4 | 10-18-2004 11:48 PM |
| about Freeze::Map::iterator | sylvain | Comments | 4 | 07-21-2003 12:28 PM |