Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constrain templated format_to on proper format string type. #883

Merged
merged 1 commit into from
Sep 27, 2018

Conversation

DanielaE
Copy link
Contributor

Signed-off-by: Daniela Engert dani@ngrt.de

Signed-off-by: Daniela Engert <dani@ngrt.de>
@@ -1285,6 +1285,9 @@ struct format_string_traits<
basic_string_view<typename S::char_type>, S>::value>::type> :
format_string_traits_base<typename S::char_type> {};

template <typename S>
struct is_format_string : std::is_empty<format_string_traits<S>> {};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, nice simplification.

@vitaut vitaut merged commit 4cf21f5 into fmtlib:master Sep 27, 2018
@vitaut
Copy link
Contributor

vitaut commented Sep 27, 2018

Thanks!

@DanielaE DanielaE deleted the feature/constrain-properly branch September 27, 2018 06:51
@DanielaE DanielaE restored the feature/constrain-properly branch September 27, 2018 16:11
@DanielaE DanielaE deleted the feature/constrain-properly branch September 27, 2018 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants