From bbfa6344faaf3caafcfb7f4819f492cf8929c590 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 1 Nov 2021 02:18:51 +0200 Subject: [PATCH] Avoid ptrdiff_t -> int warning in eif_constructors.cpp --- test/eif_constructors.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/eif_constructors.cpp b/test/eif_constructors.cpp index 6314c85..0cd3a97 100644 --- a/test/eif_constructors.cpp +++ b/test/eif_constructors.cpp @@ -13,6 +13,7 @@ #include #include #include +#include using boost::enable_if; using boost::disable_if; @@ -39,7 +40,7 @@ struct xstring disable_if >::type* = 0) : data(end-begin) {} - int data; + std::ptrdiff_t data; }; @@ -58,4 +59,3 @@ int main() return boost::report_errors(); } -