Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Shared Memory Compilation Issue
From: TONGARI (tongari95_at_[hidden])
Date: 2011-07-22 00:26:34


2011/7/22 Nathan Lewis <nathanlewissubscription_at_[hidden]>

> char_string_vector_iterator it =
> mymap->char_string_vector_vector_.begin();
> while (it != mymap->char_string_vector_vector_.end())
> {
> // error is on the line below
> cout << "Inserted String is: " << it << endl;
>

cout << "Inserted String is: " << *it << endl;

You need the dereference not the iterator itself.

HTH



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