Fixes GitHub #82: "Function definition in header file".

This commit is contained in:
Ion Gaztañaga
2018-08-29 22:19:29 +02:00
parent 84f6f27788
commit d4ff624264
2 changed files with 13 additions and 10 deletions

View File

@@ -1248,6 +1248,9 @@ use [*Boost.Container]? There are several reasons for that:
* Fixed serious bug in heterogeneous lookup functions (is_transparent was broken).
* Fixed bugs:
* [@https://github.com/boostorg/container/issues/82 GitHub #82: ['"Function definition in header file"]].
[endsect]
[section:release_notes_boost_1_68_00 Boost 1.68 Release]

View File

@@ -363,16 +363,16 @@ struct candidate_power_of_2_ct
// candidate_power_of_2_rt
//
/////////////////////////////////////////////
void candidate_power_of_2_rt ( std::size_t initial_alignment
, std::size_t real_node_size
, std::size_t payload_per_allocation
, std::size_t min_elements_per_block
, std::size_t hdr_size
, std::size_t hdr_offset_size
, std::size_t overhead_percent
, std::size_t &alignment
, std::size_t &num_subblocks
, std::size_t &real_num_node)
inline void candidate_power_of_2_rt ( std::size_t initial_alignment
, std::size_t real_node_size
, std::size_t payload_per_allocation
, std::size_t min_elements_per_block
, std::size_t hdr_size
, std::size_t hdr_offset_size
, std::size_t overhead_percent
, std::size_t &alignment
, std::size_t &num_subblocks
, std::size_t &real_num_node)
{
bool overhead_satisfied = false;
std::size_t num_b_subblock = 0;