Skip to content

Commit

Permalink
Merge pull request #211 from psychocrypt/fix-boostDepricatedUsage
Browse files Browse the repository at this point in the history
fix usage of depricated boost functions/defines
  • Loading branch information
fireice-uk authored Aug 20, 2019
2 parents e25dfe4 + ae70088 commit 6a10723
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion contrib/epee/include/math_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#pragma once

#include <boost/timer.hpp>
#include <boost/timer/timer.hpp>
#include <boost/uuid/random_generator.hpp>
#include <boost/uuid/uuid.hpp>
#include <list>
Expand Down
2 changes: 1 addition & 1 deletion external/boost/archive/portable_binary_archive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#endif

#include <boost/archive/basic_archive.hpp>
#include <boost/detail/endian.hpp>
#include <boost/predef/other/endian.h>

#include <boost/archive/impl/archive_serializer_map.ipp>

Expand Down
6 changes: 3 additions & 3 deletions external/boost/archive/portable_binary_iarchive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ BOOST_SERIALIZATION_REGISTER_ARCHIVE(portable_binary_iarchive)
#include <string>

#include <boost/archive/archive_exception.hpp>
#include <boost/detail/endian.hpp>
#include <boost/predef/other/endian.h>
#include <boost/serialization/throw_exception.hpp>

namespace boost
Expand Down Expand Up @@ -263,12 +263,12 @@ portable_binary_iarchive::load_impl(boost::intmax_t &l, char maxsize)
portable_binary_iarchive_exception());

char *cptr = reinterpret_cast<char *>(&l);
#ifdef BOOST_BIG_ENDIAN
#if BOOST_ENDIAN_BIG_BYTE
cptr += (sizeof(boost::intmax_t) - size);
#endif
this->primitive_base_t::load_binary(cptr, size);

#ifdef BOOST_BIG_ENDIAN
#if BOOST_ENDIAN_BIG_BYTE
if(m_flags & endian_little)
#else
if(m_flags & endian_big)
Expand Down
5 changes: 2 additions & 3 deletions external/boost/archive/portable_binary_oarchive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ BOOST_SERIALIZATION_REGISTER_ARCHIVE(portable_binary_oarchive)
// http://www.boost.org/LICENSE_1_0.txt)

// See http://www.boost.org for updates, documentation, and revision history.

#include <boost/detail/endian.hpp>
#include <boost/predef/other/endian.h>
#include <ostream>

namespace boost
Expand Down Expand Up @@ -269,7 +268,7 @@ portable_binary_oarchive::save_impl(
else
ll = l;
char *cptr = reinterpret_cast<char *>(&ll);
#ifdef BOOST_BIG_ENDIAN
#if BOOST_ENDIAN_BIG_BYTE
cptr += (sizeof(boost::intmax_t) - size);
if(m_flags & endian_little)
reverse_bytes(size, cptr);
Expand Down

0 comments on commit 6a10723

Please sign in to comment.