forked from Alepha/Alepha
Merge branch 'master' into concepts-in-comparisons
* master: Modernize (partially) the comparisons header's module namespaces. Allow for setting of delimiters. Match `noexcept` on `cbegin`/`cend` deletions to std. Fixup an example in comments on options. Conflicts: comparisons.h
This commit is contained in:
@ -27,6 +27,9 @@ namespace Alepha::Hydrogen::IOStreams ::detail:: delimiters_m
|
||||
explicit
|
||||
Delimiter( const std::string dflt )
|
||||
: state( [dflt] { return dflt; } ) {}
|
||||
|
||||
void set( const std::string s ) { state.setDefault( s ); }
|
||||
void set( const char c ) { set( std::string{ c } ); }
|
||||
};
|
||||
|
||||
namespace exports
|
||||
|
||||
@ -448,8 +448,8 @@ namespace Alepha::Hydrogen::inline exports::inline Buffer_m
|
||||
|
||||
template<>
|
||||
constexpr auto
|
||||
std::cbegin( const ::Alepha::Hydrogen::Buffer< Alepha::Hydrogen::Mutable > &range ) -> decltype( range.begin() )= delete;
|
||||
std::cbegin( const ::Alepha::Hydrogen::Buffer< Alepha::Hydrogen::Mutable > &range ) noexcept( noexcept( std::begin( range ) ) ) -> decltype( range.begin() )= delete;
|
||||
|
||||
template<>
|
||||
constexpr auto
|
||||
std::cend( const ::Alepha::Hydrogen::Buffer< Alepha::Hydrogen::Mutable > &range ) -> decltype( range.end() )= delete;
|
||||
std::cend( const ::Alepha::Hydrogen::Buffer< Alepha::Hydrogen::Mutable > &range ) noexcept( noexcept( std::end( range ) ) ) -> decltype( range.end() )= delete;
|
||||
|
||||
@ -51,7 +51,7 @@ static_assert( __cplusplus > 2020'99 );
|
||||
* int
|
||||
* main( int argc, const char **argv )
|
||||
* {
|
||||
* using namespace Alepha::program_options;
|
||||
* using namespace Alepha::exports::ProgramOptions_m;
|
||||
*
|
||||
* //Let's define a few options:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user