mirror of
https://github.com/boostorg/container.git
synced 2026-07-10 01:50:46 +02:00
Added constant static_vector<>/small_vector::static_capacity to use the configured capacity in constant expressions.
This commit is contained in:
@@ -65,6 +65,7 @@ bool test_small_vector_base_test()
|
||||
typedef boost::container::small_vector_base<int> smb_t;
|
||||
{
|
||||
typedef boost::container::small_vector<int, 5> sm5_t;
|
||||
BOOST_STATIC_ASSERT(sm5_t::static_capacity == 5);
|
||||
sm5_t sm5;
|
||||
smb_t &smb = sm5;
|
||||
smb.push_back(1);
|
||||
@@ -75,6 +76,7 @@ bool test_small_vector_base_test()
|
||||
}
|
||||
{
|
||||
typedef boost::container::small_vector<int, 7> sm7_t;
|
||||
BOOST_STATIC_ASSERT(sm7_t::static_capacity == 7);
|
||||
sm7_t sm7;
|
||||
smb_t &smb = sm7;
|
||||
smb.push_back(2);
|
||||
|
||||
Reference in New Issue
Block a user