<br><div class="gmail_extra"><br><br><div class="gmail_quote">Christian Henning <span dir="ltr"></span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

One more thing do I actually need to build a mpl::bool_ out of the<br>
is_same function?<br></blockquote></div><br>enable_if requres an integral constant wrapper.  There is a variant called enable_if_c which allows you to skip that in this case (automatically wraps it, I believe, like mpl::vector_c):<br>
<br><br>#include &lt;boost/mpl/and.hpp&gt;<br>#include &lt;boost/type_traits/is_same.hpp&gt;<br>#include &lt;boost/utility/enable_if.hpp&gt;<br><br>using namespace boost;<br><br>struct foo<br>{<br>  void bla()<br>  {<br>    read_data_24&lt;int, int&gt;();<br>
  }<br><br>  template&lt; typename T1, typename T2&gt;<br>  void read_data_24(typename enable_if_c&lt; is_same&lt; T1, T2 &gt;::value&gt;::type* = 0)<br>  {<br>      int i = 9;<br>  }<br>};<br><br>int main(int argc, char* argv[])<br>
{<br>    return 0;<br>}<br><br><br>HTH,<br>Nate<br><br></div>

