- ///////////////////////////////////////////////////////////////////
- /// \class FormatNAC
- /// \brief \ref Format with (N)o (A)rgument (C)heck.
- /// It won't complain about missing or excess arguments. Sometimes
- /// usefull when dealing with translations or classes providing a
- /// default formater.
- ///////////////////////////////////////////////////////////////////
- struct FormatNAC : public Format
- {
- FormatNAC() { relax(); }
- FormatNAC( const std::string & format_r ) : Format( format_r ) { relax(); }
-
- private:
- void relax()
- {
- using namespace boost::io;
- _fmter.exceptions( all_error_bits ^ ( too_many_args_bit | too_few_args_bit ) );
- }
- };
- ///////////////////////////////////////////////////////////////////