Fix doc generation for hash specialization

This commit is contained in:
Krystian Stasiowski
2020-01-15 13:23:44 -05:00
parent 34ba5ea870
commit 2d074b7839
2 changed files with 12 additions and 6 deletions

View File

@ -100,8 +100,8 @@ of `std::string`.
The iterator invalidation rules differ from those of `std::string`: The iterator invalidation rules differ from those of `std::string`:
* Moving a string invalidates all iterators * Moving a `static_string` invalidates all iterators
* Swapping two strings invalidates all iterators * Swapping two `static_string`s invalidates all iterators
[endsect] [endsect]
@ -127,7 +127,7 @@ Certain features can be enabled and disabled though defining configuration macro
* `BOOST_STATIC_STRING_STANDALONE`: When defined, the library is put into standalone mode. * `BOOST_STATIC_STRING_STANDALONE`: When defined, the library is put into standalone mode.
* `BOOST_STATIC_STRING_NO_EXCEPTIONS`: When defined, exceptions and their associated checks are disabled. * `BOOST_STATIC_STRING_NO_EXCEPTIONS`: When defined, exceptions and their associated checks are disabled. This causes violations of preconditions to result in undefined behavior.
* `BOOST_STATIC_STRING_NULL_OPTIMIZATION`: When defined, the `static_string` will use the null-terminator optimization. * `BOOST_STATIC_STRING_NULL_OPTIMIZATION`: When defined, the `static_string` will use the null-terminator optimization.

View File

@ -2989,7 +2989,7 @@ basic_static_string(CharT(&)[N]) ->
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#ifndef BOOST_STATIC_STRING_STANDALONE #ifndef BOOST_STATIC_STRING_STANDALONE
// hash_value overload for Boost.Container_Hash /// hash_value overload for Boost.Container_Hash
template <std::size_t N, template <std::size_t N,
typename CharT, typename CharT,
typename Traits> typename Traits>
@ -3004,11 +3004,17 @@ hash_value(
} // static_string } // static_string
} // boost } // boost
// std::hash partial specialization for basic_static_string /// std::hash partial specialization for basic_static_string
namespace std namespace std
{ {
template <std::size_t N, typename CharT, typename Traits> template <std::size_t N, typename CharT, typename Traits>
struct hash<boost::static_string::basic_static_string<N, CharT, Traits>> struct hash<
#if GENERATING_DOCUMENTATION
basic_static_string
#else
boost::static_string::basic_static_string<N, CharT, Traits>
#endif
>
{ {
std::size_t std::size_t
operator()( operator()(