From 6018d1c4c40149390b7cf6517d28e8b87b25c90c Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Tue, 13 Jun 2017 18:37:01 +0900 Subject: [PATCH] Fixed compile error with FreeBSD libc. FreeBSD libc defines NULL as nullptr in c++11 or later mode; nullptr cannot convert to arithmetic type. see https://svnweb.freebsd.org/base/head/sys/sys/_null.h?r1=192002&r2=228918 --- include/boost/archive/iterators/escape.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/archive/iterators/escape.hpp b/include/boost/archive/iterators/escape.hpp index c8ec903a9..103b31e0f 100644 --- a/include/boost/archive/iterators/escape.hpp +++ b/include/boost/archive/iterators/escape.hpp @@ -103,7 +103,7 @@ class escape : m_bnext(NULL), m_bend(NULL), m_full(false), - m_current_value(NULL) + m_current_value(0) { } };