-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Description
Below function
sort/include/boost/sort/spreadsort/detail/string_sort.hpp
Lines 696 to 705 in db798f6
| template <class RandomAccessIter, class Unsigned_char_type> | |
| inline typename boost::disable_if_c< sizeof(Unsigned_char_type) <= 2, void | |
| >::type | |
| string_sort(RandomAccessIter first, RandomAccessIter last, | |
| Unsigned_char_type) | |
| { | |
| //Warning that we're using boost::sort::pdqsort, even though string_sort was called | |
| BOOST_STATIC_ASSERT( sizeof(Unsigned_char_type) <= 2 ); | |
| boost::sort::pdqsort(first, last); | |
| } |
Will be disable if sizeof(Unsigned_char_type) <= 2, that means that function will be enabled when sizeof(Unsigned_char_type) > 2.
However, when sizeof(Unsigned_char_type) > 2, the BOOST_STATIC_ASSERT( sizeof(Unsigned_char_type) <= 2 ); will run into failure.
Metadata
Metadata
Assignees
Labels
No labels