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

Restore support for wchar_t overloads in module #2298

Merged
merged 1 commit into from
May 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Restore support for wchar_t overloads in module
DanielaE committed May 20, 2021
commit 7d438a2d5b25b14f73b58242af38361cb57fb0b6
2 changes: 2 additions & 0 deletions include/fmt/wchar.h
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@
#include "format.h"

FMT_BEGIN_NAMESPACE
FMT_MODULE_EXPORT_BEGIN

using wformat_parse_context = basic_format_parse_context<wchar_t>;
using wformat_context = buffer_context<wchar_t>;
@@ -60,6 +61,7 @@ template <typename... T> void print(wformat_string<T...> fmt, T&&... args) {
return vprint(wstring_view(fmt), make_wformat_args(args...));
}

FMT_MODULE_EXPORT_END
FMT_END_NAMESPACE

#endif // FMT_WCHAR_H_
1 change: 1 addition & 0 deletions src/fmt.cc
Original file line number Diff line number Diff line change
@@ -86,6 +86,7 @@ export module fmt;
#include "fmt/locale.h"
#include "fmt/chrono.h"
#include "fmt/printf.h"
#include "fmt/wchar.h"
#include "fmt/os.h"

module : private;