C++ non-scalar conversion error. Help
Gabriel Dos Reis
gdr@integrable-solutions.net
Sat Feb 21 13:45:00 GMT 2004
"Nguyen, Thai" <Thai.Nguyen@actel.com> writes:
| Hi, Please help.
|
| I run into a C++ conversion to non-scalar type when I port codes from PC to
| linux platform. I am using Linux 7.2, gcc 3.0.3. Following is a of the
| conversion error from compiler:
|
| /vobs/nsrc/pd/lib/ippbase/ifc/ippmacro.inl:155: conversion from
| `std::__normal_iterator<IppPin* const*, std::vector<IppPin*,
| std::allocator<IppPin*> > >' to non-scalar type
| `std::__normal_iterator<const IppPin* const*, std::vector<const IppPin*,
| std::allocator<const IppPin*> > >' requested
|
|
| Any patch? Or any way to get around with this problem, please help me.
| Thank you very much.
I have the impression you have two different containers
vector<IppPin*> v;
vector<const IppPin*> w;
and you're trying to use iterators on v in places where iterators on
w are extected. The compiler detected that as a type violation.
-- Gaby
More information about the Gcc-patches
mailing list