Skip to content

Commit 42c0845

Browse files
committed
Declare formatting options in derived formatters as public
This will allow the base BasicFormatSpecifier class to refer to these members in derived classes without needing e.g. friendship.
1 parent 58374fb commit 42c0845

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fly/types/string/detail/format_specifier.hpp

-3
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,6 @@ struct BasicFormatSpecifier
437437
* BasicFormatSpecifier.
438438
*/
439439
#define FLY_DEFINE_FORMATTER(CharType, parameter_type) \
440-
\
441-
protected: \
442440
using FormatSpecifier = fly::detail::BasicFormatSpecifier<CharType>; \
443441
using FormatSpecifier::m_position; \
444442
using FormatSpecifier::m_fill; \
@@ -455,7 +453,6 @@ protected:
455453
using FormatSpecifier::m_case; \
456454
using FormatSpecifier::m_parameter_type; \
457455
\
458-
public: \
459456
Formatter() \
460457
{ \
461458
m_parameter_type = parameter_type; \

0 commit comments

Comments
 (0)