<p>I am using <code>RangeSearch</code> in mlpack 2.0.1 as:</p>

<pre><code>typedef metric::EuclideanDistance MetricType;
typedef tree::BinarySpaceTree&lt;MetricType&gt; TreeType;
typedef range::RangeSearch&lt;&gt; SearchType;
...
arma::mat dataset(...);
...
TreeType datasetTree(dataset);
....
SearchType a(&amp;datasetTree, true);
</code></pre>

<p>The C++ compiler is <code>g++</code> 5.2.0, and it print warning as:</p>

<pre><code>: warning: address of 'datasetTree' will always evaluate to 'true'
      [-Wpointer-bool-conversion]
    SearchType a(&amp;datasetTree, true);
               ~  ^~~~~~~~~~~
1 warning generated.
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/528">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBAATgaUx4OKjrfi7YP1VjAoPFhaks5poaV0gaJpZM4Hkfnv.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/528"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>