<div dir="ltr">I have also tried modifying CMakeLists with<div><font face="monospace, monospace">set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")</font></div><div>to ensure consistency of flags with my app build, but that had no effect.<br><div class="gmail_extra"><br></div><div class="gmail_extra">Anyone have any ideas?</div><div class="gmail_extra"><br><div class="gmail_quote">On 30 May 2015 at 12:58, Ibrahim Sha'ath <span dir="ltr"><<a href="mailto:ibrahimshaath@gmail.com" target="_blank">ibrahimshaath@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi there,<div><br></div><div>I have the following code to write to the Grouping field in an MP4 file:</div><div><br></div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,128)">TagLib</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">StringList</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">sl</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(128,0,128)">TagLib</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">String</span><span style="color:rgb(0,0,0)">("data"</span><span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">TagLib</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">String</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(128,0,128)">UTF8</span><span style="color:rgb(0,0,0)">));</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,0)">mp4File</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">tag</span><span style="color:rgb(0,0,0)">()-></span><span style="color:rgb(0,0,0)">itemListMap</span><span style="color:rgb(0,0,0)">().</span><span style="color:rgb(0,0,0)">insert</span><span style="color:rgb(0,0,0)">(</span>"\251grp"<span style="color:rgb(0,0,0)">,</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,0,0)">sl</span><span style="color:rgb(0,0,0)">);</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,0)">mp4File</span><span style="color:rgb(0,0,0)">-></span><span style="font-style:italic;color:rgb(0,0,0)">save</span><span style="color:rgb(0,0,0)">();</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><br></pre>Where mp4file is a TagLib::MP4::File. This code was working fine but now crashes with a segfault; I've narrowed the change down to when I switched my project to C++11 to rid myself of Boost.</div><div><br></div><div>The top of the crashed thread's stack (in OSX) reads as follows:</div><div><div><font face="monospace, monospace">0 ... std::__1::__tree<std::__1::__value_type<TagLib::String, TagLib::MP4::Item>, std::__1::__map_value_compare<TagLib::String, std::__1::__value_type<TagLib::String, TagLib::MP4::Item>, std::__1::less<TagLib::String>, true>, std::__1::allocator<std::__1::__value_type<TagLib::String, TagLib::MP4::Item> > >::__insert_node_at(std::__1::__tree_node_base<void*>*, std::__1::__tree_node_base<void*>*&, std::__1::__tree_node_base<void*>*) + 88</font></div><div><font face="monospace, monospace">1 ... std::__1::map<TagLib::String, TagLib::MP4::Item, std::__1::less<TagLib::String>, std::__1::allocator<std::__1::pair<TagLib::String const, TagLib::MP4::Item> > >::operator[](TagLib::String const&) + 205</font></div><div><font face="monospace, monospace">2 ... TagLib::Map<TagLib::String, TagLib::MP4::Item>::insert(TagLib::String const&, TagLib::MP4::Item const&) + 71</font></div><div><font face="monospace, monospace">3 ...</font></div></div><br>Has anyone had a similar experience? Is this expected with C++11, or is there some way around it?<div><br></div><div>Any help appreciated.</div><div>Regards</div><span class=""><font color="#888888"><div>Ibrahim</div></font></span></div>
</blockquote></div><br></div></div></div>