Re: [Boost-bugs] [Boost C++ Libraries] #7930: Error C2874 occurred at bm_traits.hpp on Visual Studio 2012

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7930: Error C2874 occurred at bm_traits.hpp on Visual Studio 2012
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-27 01:45:04


#7930: Error C2874 occurred at bm_traits.hpp on Visual Studio 2012
-------------------------------+--------------------------------------------
  Reporter: anonymous | Owner: marshall
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: algorithm
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by anonymous):

 I use Japanese language environment.[[BR]]
 Sorry, the cause may be not
 '''boost/algorithm/searching/detail/bm_traits.hpp''',[[BR]]
 but '''boost/tr1/tr1/unordered_map'''.

 Error log is the following.
 [[BR]]
 {{{
 K:\MyProjects\test_vs2010\test_boyer_moore>type main.cpp
 #include <boost/tr1/tr1/unordered_map>

 int main ( int argc, char *argv [] )
 {
         return 0;
 }

 K:\MyProjects\test_vs2010\test_boyer_moore>cl
 -IK:\library\Boost\boost_1_52_0 /EHsc main.cpp
 Microsoft(R) C/C++ Optimizing Compiler Version 17.00.51106.1 for x86
 Copyright (C) Microsoft Corporation. All rights reserved.

 main.cpp
 K:\library\Boost\boost_1_52_0\boost/tr1/unordered_map.hpp(25) : error
 C2874: using 宣言によって 'boost::unordered::unordered_map' の多重宣言が発生します。
 K:\library\Boost\boost_1_52_0\boost/unordered/unordered_map.hpp(42) :
 'boost::unordered::unordered_map' の宣言を確認してください。
 K:\library\Boost\boost_1_52_0\boost/tr1/unordered_map.hpp(26) : error
 C2874: using 宣言によって 'boost::unordered::unordered_multimap' の多重宣言が発生します。
 K:\library\Boost\boost_1_52_0\boost/unordered/unordered_map.hpp(525) :
 'boost::unordered::unordered_multimap' の宣言を確認してください。
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7930#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC