mirror of
https://github.com/boostorg/utility.git
synced 2025-08-02 14:24:30 +02:00
added sample implementation using alignment_of
[SVN r2016]
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include <boost/static_assert.hpp>
|
||||
#include <boost/config.hpp>
|
||||
|
||||
// Include "select_by_size.hpp" with BOOST_SELECT_BY_SIZE_CASES undefined.
|
||||
// Include "select_by_size.hpp" with BOOST_SELECT_BY_SIZE_MAX_CASE undefined.
|
||||
#include <boost/utility/select_by_size.hpp>
|
||||
using boost::utility::case_;
|
||||
|
||||
@@ -26,7 +26,7 @@ struct test1 {
|
||||
};
|
||||
|
||||
// Include "select_by_size.hpp" a second time, defining more cases.
|
||||
#define BOOST_SELECT_BY_SIZE_CASES 8
|
||||
#define BOOST_SELECT_BY_SIZE_MAX_CASE 7
|
||||
#include <boost/utility/select_by_size.hpp>
|
||||
|
||||
case_<2> helper(unsigned);
|
||||
|
Reference in New Issue
Block a user