From f49e5d0ad1771fbdd0b71444bc45a1013de6d28c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 20 Oct 2017 00:32:09 +0200 Subject: [PATCH] Fixes #59 --- doc/container.qbk | 1 + include/boost/container/string.hpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/doc/container.qbk b/doc/container.qbk index 55f21ec..4d232fa 100644 --- a/doc/container.qbk +++ b/doc/container.qbk @@ -1221,6 +1221,7 @@ use [*Boost.Container]? There are several reasons for that: * Fixed bugs: * [@https://github.com/boostorg/container/pull/54 GitHub #54: ['"no sbrk() in VxWorks, configure dlmalloc to use only mmap"]]. * [@https://github.com/boostorg/container/issues/58 GitHub #58: ['"Comparing strings does not compile in gcc 7+ in C++17 mode"]]. + * [@https://github.com/boostorg/container/issues/59 GitHub #59: ['"basic_string::npos is missing its definition"]]. [endsect] diff --git a/include/boost/container/string.hpp b/include/boost/container/string.hpp index 51a8fe0..cba6325 100644 --- a/include/boost/container/string.hpp +++ b/include/boost/container/string.hpp @@ -2955,6 +2955,10 @@ wstring; #else +template +const typename basic_string::size_type + basic_string::npos; + template struct is_string {