Bradley-Meyers-MacBook-Air:chap-13-containers bradleymeyer$ g++ --version g++ (MacPorts gcc45 4.5.4_6) 4.5.4 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Bradley-Meyers-MacBook-Air:chap-13-containers bradleymeyer$ g++ -Wconversion -I/Users/bradleymeyer/special/boost/boost-trunk/ -o test ex.13.7.cpp In file included from ex.13.7.cpp:2:0: /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index/hashed_index.hpp: In member function 'void boost::multi_index::detail::hashed_index::reserve(boost::multi_index::detail::hashed_index::size_type) [with KeyFromValue = boost::multi_index::member, &person::name>, Hash = boost::hash >, Pred = std::equal_to >, SuperMeta = boost::multi_index::detail::nth_layer<1, person, boost::multi_index::indexed_by, &person::name> >, boost::multi_index::hashed_non_unique > >, std::allocator >, TagList = boost::mpl::vector0, Category = boost::multi_index::detail::hashed_non_unique_tag, boost::multi_index::detail::hashed_index::size_type = long unsigned int]': /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index/hashed_index.hpp:695:5: instantiated from 'boost::multi_index::detail::hashed_index::node_type* boost::multi_index::detail::hashed_index::insert_(boost::multi_index::detail::hashed_index::value_param_type, boost::multi_index::detail::hashed_index::node_type*) [with KeyFromValue = boost::multi_index::member, &person::name>, Hash = boost::hash >, Pred = std::equal_to >, SuperMeta = boost::multi_index::detail::nth_layer<1, person, boost::multi_index::indexed_by, &person::name> >, boost::multi_index::hashed_non_unique > >, std::allocator >, TagList = boost::mpl::vector0, Category = boost::multi_index::detail::hashed_non_unique_tag, boost::multi_index::detail::hashed_index::node_type = boost::multi_index::detail::hashed_index_node > > >, typename SuperMeta::type::node_type = boost::multi_index::detail::hashed_index_node > >, boost::multi_index::detail::hashed_index::value_param_type = const person&]' /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index_container.hpp:488:40: instantiated from 'std::pair::type::node_type*, bool> boost::multi_index::multi_index_container::insert_(const Value&) [with Value = person, IndexSpecifierList = boost::multi_index::indexed_by, &person::name> >, boost::multi_index::hashed_non_unique > >, Allocator = std::allocator, typename boost::multi_index::detail::multi_index_base_type::type::node_type = boost::multi_index::detail::hashed_index_node > > >]' /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index/detail/index_base.hpp:150:30: instantiated from 'std::pair::type*, bool> boost::multi_index::detail::index_base::final_insert_(boost::multi_index::detail::index_base::value_param_type) [with Value = person, IndexSpecifierList = boost::multi_index::indexed_by, &person::name> >, boost::multi_index::hashed_non_unique > >, Allocator = std::allocator, typename boost::multi_index::detail::multi_index_node_type::type = boost::multi_index::detail::hashed_index_node > > >, boost::multi_index::detail::index_base::value_param_type = const person&]' /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index/hashed_index.hpp:254:61: instantiated from 'std::pair, boost::multi_index::detail::bucket_array >, bool> boost::multi_index::detail::hashed_index::insert(boost::multi_index::detail::hashed_index::value_param_type) [with KeyFromValue = boost::multi_index::member, &person::name>, Hash = boost::hash >, Pred = std::equal_to >, SuperMeta = boost::multi_index::detail::nth_layer<1, person, boost::multi_index::indexed_by, &person::name> >, boost::multi_index::hashed_non_unique > >, std::allocator >, TagList = boost::mpl::vector0, Category = boost::multi_index::detail::hashed_non_unique_tag, typename SuperMeta::type::final_allocator_type = std::allocator, typename SuperMeta::type::node_type = boost::multi_index::detail::hashed_index_node > >, boost::multi_index::detail::hashed_index::value_param_type = const person&]' ex.13.7.cpp:41:37: instantiated from here /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index/hashed_index.hpp:1050:47: warning: conversion to 'float' from 'boost::multi_index::detail::hashed_index, std::allocator >, person::name>, boost::hash, std::allocator > >, std::equal_to, std::allocator > >, boost::multi_index::detail::nth_layer<1, person, boost::multi_index::indexed_by, std::allocator >, person::name>, mpl_::na, mpl_::na, mpl_::na>, boost::multi_index::hashed_non_unique, mpl_::na, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator >, boost::mpl::vector0, boost::multi_index::detail::hashed_non_unique_tag>::size_type' may alter its value /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index/hashed_index.hpp: In member function 'void boost::multi_index::detail::hashed_index::reserve(boost::multi_index::detail::hashed_index::size_type) [with KeyFromValue = boost::multi_index::member, Hash = boost::hash, Pred = std::equal_to, SuperMeta = boost::multi_index::detail::nth_layer<2, person, boost::multi_index::indexed_by, &person::name> >, boost::multi_index::hashed_non_unique > >, std::allocator >, TagList = boost::mpl::vector0, Category = boost::multi_index::detail::hashed_non_unique_tag, boost::multi_index::detail::hashed_index::size_type = long unsigned int]': /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index/hashed_index.hpp:695:5: instantiated from 'boost::multi_index::detail::hashed_index::node_type* boost::multi_index::detail::hashed_index::insert_(boost::multi_index::detail::hashed_index::value_param_type, boost::multi_index::detail::hashed_index::node_type*) [with KeyFromValue = boost::multi_index::member, Hash = boost::hash, Pred = std::equal_to, SuperMeta = boost::multi_index::detail::nth_layer<2, person, boost::multi_index::indexed_by, &person::name> >, boost::multi_index::hashed_non_unique > >, std::allocator >, TagList = boost::mpl::vector0, Category = boost::multi_index::detail::hashed_non_unique_tag, boost::multi_index::detail::hashed_index::node_type = boost::multi_index::detail::hashed_index_node > >, typename SuperMeta::type::node_type = boost::multi_index::detail::index_node_base >, boost::multi_index::detail::hashed_index::value_param_type = const person&]' /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index/hashed_index.hpp:701:63: instantiated from 'boost::multi_index::detail::hashed_index::node_type* boost::multi_index::detail::hashed_index::insert_(boost::multi_index::detail::hashed_index::value_param_type, boost::multi_index::detail::hashed_index::node_type*) [with KeyFromValue = boost::multi_index::member, &person::name>, Hash = boost::hash >, Pred = std::equal_to >, SuperMeta = boost::multi_index::detail::nth_layer<1, person, boost::multi_index::indexed_by, &person::name> >, boost::multi_index::hashed_non_unique > >, std::allocator >, TagList = boost::mpl::vector0, Category = boost::multi_index::detail::hashed_non_unique_tag, boost::multi_index::detail::hashed_index::node_type = boost::multi_index::detail::hashed_index_node > > >, typename SuperMeta::type::node_type = boost::multi_index::detail::hashed_index_node > >, boost::multi_index::detail::hashed_index::value_param_type = const person&]' /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index_container.hpp:488:40: instantiated from 'std::pair::type::node_type*, bool> boost::multi_index::multi_index_container::insert_(const Value&) [with Value = person, IndexSpecifierList = boost::multi_index::indexed_by, &person::name> >, boost::multi_index::hashed_non_unique > >, Allocator = std::allocator, typename boost::multi_index::detail::multi_index_base_type::type::node_type = boost::multi_index::detail::hashed_index_node > > >]' /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index/detail/index_base.hpp:150:30: instantiated from 'std::pair::type*, bool> boost::multi_index::detail::index_base::final_insert_(boost::multi_index::detail::index_base::value_param_type) [with Value = person, IndexSpecifierList = boost::multi_index::indexed_by, &person::name> >, boost::multi_index::hashed_non_unique > >, Allocator = std::allocator, typename boost::multi_index::detail::multi_index_node_type::type = boost::multi_index::detail::hashed_index_node > > >, boost::multi_index::detail::index_base::value_param_type = const person&]' /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index/hashed_index.hpp:254:61: instantiated from 'std::pair, boost::multi_index::detail::bucket_array >, bool> boost::multi_index::detail::hashed_index::insert(boost::multi_index::detail::hashed_index::value_param_type) [with KeyFromValue = boost::multi_index::member, &person::name>, Hash = boost::hash >, Pred = std::equal_to >, SuperMeta = boost::multi_index::detail::nth_layer<1, person, boost::multi_index::indexed_by, &person::name> >, boost::multi_index::hashed_non_unique > >, std::allocator >, TagList = boost::mpl::vector0, Category = boost::multi_index::detail::hashed_non_unique_tag, typename SuperMeta::type::final_allocator_type = std::allocator, typename SuperMeta::type::node_type = boost::multi_index::detail::hashed_index_node > >, boost::multi_index::detail::hashed_index::value_param_type = const person&]' ex.13.7.cpp:41:37: instantiated from here /Users/bradleymeyer/special/boost/boost-trunk/boost/multi_index/hashed_index.hpp:1050:47: warning: conversion to 'float' from 'boost::multi_index::detail::hashed_index, boost::hash, std::equal_to, boost::multi_index::detail::nth_layer<2, person, boost::multi_index::indexed_by, std::allocator >, person::name>, mpl_::na, mpl_::na, mpl_::na>, boost::multi_index::hashed_non_unique, mpl_::na, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator >, boost::mpl::vector0, boost::multi_index::detail::hashed_non_unique_tag>::size_type' may alter its value