replace inline with anonynmous namespace to avoid duplicate symbols during linking
This commit is contained in:
parent
4277eed1b6
commit
909db4c861
@ -32,6 +32,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
// this is largely inspired by boost's hash combine as can be found in
|
||||
// "The C++ Standard Library" 2nd Edition. Nicolai M. Josuttis. 2012.
|
||||
|
||||
namespace {
|
||||
|
||||
template<typename T>
|
||||
void hash_combine(std::size_t &seed, const T& val)
|
||||
{
|
||||
@ -58,6 +61,7 @@ std::size_t hash_val( const Types&... args)
|
||||
hash_val(seed, args...);
|
||||
return seed;
|
||||
}
|
||||
}
|
||||
|
||||
namespace std
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user