mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 06:24:26 +02:00
@@ -12,6 +12,7 @@
|
|||||||
#define BOOST_CONTAINER_DETAIL_UTILITIES_HPP
|
#define BOOST_CONTAINER_DETAIL_UTILITIES_HPP
|
||||||
|
|
||||||
#include "config_begin.hpp"
|
#include "config_begin.hpp"
|
||||||
|
#include "workaround.hpp"
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstring> //for ::memcpy
|
#include <cstring> //for ::memcpy
|
||||||
#include <boost/type_traits/is_fundamental.hpp>
|
#include <boost/type_traits/is_fundamental.hpp>
|
||||||
@@ -1055,18 +1056,21 @@ inline typename container_detail::enable_if_c
|
|||||||
::memcpy(short_ptr, stora_ptr, sizeof_storage);
|
::memcpy(short_ptr, stora_ptr, sizeof_storage);
|
||||||
large_ptr += sizeof_storage;
|
large_ptr += sizeof_storage;
|
||||||
short_ptr += sizeof_storage;
|
short_ptr += sizeof_storage;
|
||||||
|
BOOST_CONTAINER_FALLTHOUGH
|
||||||
case 3:
|
case 3:
|
||||||
::memcpy(stora_ptr, large_ptr, sizeof_storage);
|
::memcpy(stora_ptr, large_ptr, sizeof_storage);
|
||||||
::memcpy(large_ptr, short_ptr, sizeof_storage);
|
::memcpy(large_ptr, short_ptr, sizeof_storage);
|
||||||
::memcpy(short_ptr, stora_ptr, sizeof_storage);
|
::memcpy(short_ptr, stora_ptr, sizeof_storage);
|
||||||
large_ptr += sizeof_storage;
|
large_ptr += sizeof_storage;
|
||||||
short_ptr += sizeof_storage;
|
short_ptr += sizeof_storage;
|
||||||
|
BOOST_CONTAINER_FALLTHOUGH
|
||||||
case 2:
|
case 2:
|
||||||
::memcpy(stora_ptr, large_ptr, sizeof_storage);
|
::memcpy(stora_ptr, large_ptr, sizeof_storage);
|
||||||
::memcpy(large_ptr, short_ptr, sizeof_storage);
|
::memcpy(large_ptr, short_ptr, sizeof_storage);
|
||||||
::memcpy(short_ptr, stora_ptr, sizeof_storage);
|
::memcpy(short_ptr, stora_ptr, sizeof_storage);
|
||||||
large_ptr += sizeof_storage;
|
large_ptr += sizeof_storage;
|
||||||
short_ptr += sizeof_storage;
|
short_ptr += sizeof_storage;
|
||||||
|
BOOST_CONTAINER_FALLTHOUGH
|
||||||
case 1:
|
case 1:
|
||||||
::memcpy(stora_ptr, large_ptr, sizeof_storage);
|
::memcpy(stora_ptr, large_ptr, sizeof_storage);
|
||||||
::memcpy(large_ptr, short_ptr, sizeof_storage);
|
::memcpy(large_ptr, short_ptr, sizeof_storage);
|
||||||
|
@@ -35,6 +35,12 @@
|
|||||||
#define BOOST_CONTAINER_UNIMPLEMENTED_PACK_EXPANSION_TO_FIXED_LIST
|
#define BOOST_CONTAINER_UNIMPLEMENTED_PACK_EXPANSION_TO_FIXED_LIST
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(BOOST_FALLTHOUGH)
|
||||||
|
#define BOOST_CONTAINER_FALLTHOUGH
|
||||||
|
#else
|
||||||
|
#define BOOST_CONTAINER_FALLTHOUGH BOOST_FALLTHOUGH;
|
||||||
|
#endif
|
||||||
|
|
||||||
//Macros for documentation purposes. For code, expands to the argument
|
//Macros for documentation purposes. For code, expands to the argument
|
||||||
#define BOOST_CONTAINER_IMPDEF(TYPE) TYPE
|
#define BOOST_CONTAINER_IMPDEF(TYPE) TYPE
|
||||||
#define BOOST_CONTAINER_SEEDOC(TYPE) TYPE
|
#define BOOST_CONTAINER_SEEDOC(TYPE) TYPE
|
||||||
|
Reference in New Issue
Block a user