]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/bimap/test/test_bimap_convenience_header.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / bimap / test / test_bimap_convenience_header.cpp
CommitLineData
7c673cae
FG
1// Boost.Bimap
2//
3// Copyright (c) 2006-2007 Matias Capeletto
4//
5// Distributed under the Boost Software License, Version 1.0.
6// (See accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8
9// VC++ 8.0 warns on usage of certain Standard Library and API functions that
10// can be cause buffer overruns or other possible security issues if misused.
11// See http://msdn.microsoft.com/msdnmag/issues/05/05/SafeCandC/default.aspx
12// But the wording of the warning is misleading and unsettling, there are no
13// portable alternative functions, and VC++ 8.0's own libraries use the
14// functions in question. So turn off the warnings.
15#define _CRT_SECURE_NO_DEPRECATE
16#define _SCL_SECURE_NO_DEPRECATE
17
18#include <boost/config.hpp>
19
20// Boost.Test
21#include <boost/test/minimal.hpp>
22
23#include <boost/bimap.hpp>
24
25void test_bimap_convenience_header()
26{
27 typedef boost::bimap< int, double > bm_type;
28 bm_type bm;
29 bm.insert( bm_type::value_type(1,0.1) );
30 BOOST_CHECK( bm.right.at(0.1) == 1 );
31}
32
33int test_main( int, char* [] )
34{
35 test_bimap_convenience_header();
36 return 0;
37}
38