Ticket #8129: test.txt

File test.txt, 16.6 KB (added by mbradle@…, 10 years ago)

transcript of compilation and warning

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