From 98cce956f900da02e08f43b987af80c4dbef0ba2 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Fri, 28 Oct 2016 09:06:53 +0100 Subject: [PATCH] Try to fix a 64-bit powerpc g++ 7 warning Warning is: allocate.hpp:335:19: warning: conversion to ???unsigned int??? from ???long unsigned int??? may alter its value [-Wconversion] I'm not sure, but I think it's because the sizeof is a long unsigned int, and the template parameter is an unsigned int. The sizeof isn't even used, it's just there to get a value for expression SFINAE. --- include/boost/unordered/detail/allocate.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/allocate.hpp b/include/boost/unordered/detail/allocate.hpp index bddfaf4f..2d9cf4b6 100644 --- a/include/boost/unordered/detail/allocate.hpp +++ b/include/boost/unordered/detail/allocate.hpp @@ -325,7 +325,7 @@ namespace boost { namespace unordered { namespace detail { #if !defined(BOOST_NO_SFINAE_EXPR) - template struct expr_test; + template struct expr_test; template struct expr_test : T {}; # define BOOST_UNORDERED_CHECK_EXPRESSION(count, result, expression) \