From 791f1bde640f0604067ee35d9deb266d14cd76ec Mon Sep 17 00:00:00 2001 From: Yuri Kilochek Date: Tue, 25 Jul 2017 17:25:00 +0300 Subject: [PATCH] Use same type for both input and output conversion operators of `archive::class_id_type`. --- include/boost/archive/basic_archive.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/archive/basic_archive.hpp b/include/boost/archive/basic_archive.hpp index ce7ac99a..eaa98cf2 100644 --- a/include/boost/archive/basic_archive.hpp +++ b/include/boost/archive/basic_archive.hpp @@ -127,11 +127,11 @@ public: } // used for text output - operator int () const { + operator base_type () const { return t; } // used for text input - operator int_least16_t &() { + operator base_type &() { return t; } bool operator==(const class_id_type & rhs) const {