Skip to content

Commit

Permalink
Restore support for wchar_t overloads in module
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielaE authored and vitaut committed May 20, 2021
1 parent 24b677d commit 6e2e6b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fmt/wchar.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down Expand Up @@ -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
Expand Up @@ -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;
Expand Down

0 comments on commit 6e2e6b7

Please sign in to comment.