title: Good way to call overloaded const vs non-const method in C++ TDD?
body: <p>All</p>
  
  <p>wrote some fancy container with iterators. So I have</p>
  
  <pre><code>iterator begin() {
  }
  
  iterator end() {
  }
  
  const_iterator begin() const {
  }
  
  const_iterator end() const {
  }
  </code></pre>
  
  <p>In test I instantiate container, fill it and testing it. What is an accepted/good way to call both const and non-const version? Say, simple test like</p>
  
  <pre><code>TEST( c.end() - c.begin() == c.size() );
  </code></pre>
  
  <p>should run for iterators as well as for const iterators.
  Const reference? Some ugly cast?</p>