Boost logo

Boost Users :

Subject: [Boost-users] bimap broken in 1.59 on mac?
From: James Sutherland (James.Sutherland_at_[hidden])
Date: 2015-09-15 11:29:40


​I have been using boost::bimap for quite some time, and in 1.59 I am
seeing numerous compiler errors that terminate with:
  BIMAP_STATIC_ERROR__const_local_iterator_type_by_FAILURE

I have no idea what is causing this, and a google search doesn't turn up
anything either. Has anyone seen this?

COMPILER:
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0

Here is a simple code to generate the problem:

//----------
​#include <boost/bimap.hpp>
#include <iostream>

int main()
{
  typedef boost::bimap< int, double > MyMapT;
  MyMapT map;

  int i1=3;
  double d1=3.333;

  map.left .insert( MyMapT::left_value_type ( i1, d1 ) );

  MyMapT::left_iterator il = map.left .find( i1 );
  MyMapT::right_iterator ir = map.right.find( d1 );

  std::cout << ir->second << " <-> " << il->second << std::endl;
}
//----------

​Thanks for any tips,

James
​



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net