How to convert from an object of any type to string
<p>I have this problem, can someone help me?</p>

<pre><code>boost::property_map&lt;slGraph, edge_name_t&gt;::type name1 = get(edge_name, graph);

slEdgeIterator ei, ei_end;
    for(tie(ei, ei_end) = edges(graph); ei != ei_end; ++ei){

        name1[*ei] = "UNKNOWN"; //(error C2679: binary '=' : no operator found which takes a right-hand operand of type 'const char [8]' (or there is no acceptable conversion))

        }//end

slOutEdgeIterator outEdgeItr;
if(name1[*outEdgeItr].compare("UNKNOWN")==0)// (error C2039: 'compare' : is not a member of 'boost::detail::error_property_not_found')
{}
</code></pre>
