Boost C++ Libraries: Ticket #12646: Compilation error when using a property type other than int with property_merge_45 https://svn.boost.org/trac10/ticket/12646 <p> The following usage of property merge leads to compilation errors: </p> <p> property_merge_45&lt;int,string&gt; pm; </p> <p> The issue is simple to correct. I was able to get the following to compile and function as expected by making a one line edit to polygon/detail/property_merge_45.hpp. I modified line 34 in class <a class="missing wiki">CountMerge</a> to be: </p> <p> typename std::vector&lt;std::pair&lt;property_type, int&gt; &gt;::iterator itr = lower_bound(counts.begin(), counts.end(), std::make_pair(index, int(0))); </p> <p> instead of: </p> <p> std::vector&lt;std::pair&lt;int, int&gt; &gt;::iterator itr = lower_bound(counts.begin(), counts.end(), std::make_pair(index, int(0))); </p> <p> which make it consistent with the declaration in class <a class="missing wiki">CountMerge</a>: </p> <p> std::vector&lt;std::pair&lt;property_type, int&gt; &gt; counts; </p> <p> -Charles </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12646 Trac 1.4.3