mirror of
https://github.com/boostorg/multi_index.git
synced 2025-05-11 13:24:04 +00:00
suppressed narrowing conversion warning
This commit is contained in:
parent
f4c9492a54
commit
09afa8aa99
@ -1,6 +1,6 @@
|
||||
/* Boost.MultiIndex test for special set operations.
|
||||
*
|
||||
* Copyright 2003-2013 Joaquin M Lopez Munoz.
|
||||
* Copyright 2003-2015 Joaquin M Lopez Munoz.
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
* http://www.boost.org/LICENSE_1_0.txt)
|
||||
@ -44,7 +44,7 @@ struct hash_string_as_int
|
||||
{
|
||||
int operator()(const std::string& x)const
|
||||
{
|
||||
return boost::hash<int>()(string_to_int(x));
|
||||
return static_cast<int>(boost::hash<int>()(string_to_int(x)));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user