cast multimap values

S

scrat_here

Hi
How to solve the error:

error: invalid cast from type ‘std::pair<const std::basic_string<char>, std::vector<Procedure*> >’ to type ‘const char*’

Many thanks
 
Ö

Öö Tiib

How to solve the error:

error: invalid cast from type ‘std::pair<const std::basic_string<char>,
std::vector<Procedure*> >’ to type ‘const char*’

By not doing what it complains about. For example you attempt to supply
objects of type 'std::pair<std::string,std::vector<Procedure*> >' as
arguments to a function that expects 'const char*' as parameter. It is
illegal to do so and so compiler refuses to compile it.
 
Ö

Öö Tiib

I can read the error but look for a cast.

Such a cast is nonsense so it is made illegal in C++. Can you convert
your keyboard and mouse into IP address of your PC? No? Why? Because
it is nonsense. What you actually try to do we do not know, because
you do not tell nor show.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top