fix and improve module (#3386)

* export public documented API
* don't export `namespace detail`
* add `std.h` into module
* add missing namespace qualification in `xchar.h`
* fix call to `detail::get_iterator` in `xchar.h`
* fix ambiguous overload of `detail::isfinite` in `chrono.h`
This commit is contained in:
Daniela Engert
2023-04-18 15:47:01 +02:00
committed by GitHub
parent 8ec94ac6a5
commit 0489c19dcb
6 changed files with 32 additions and 8 deletions

View File

@@ -14,19 +14,25 @@ module;
#include <cstring>
#include <ctime>
#include <exception>
#include <filesystem>
#include <fstream>
#include <functional>
#include <iterator>
#include <limits>
#include <locale>
#include <memory>
#include <optional>
#include <ostream>
#include <stdexcept>
#include <string>
#include <string_view>
#include <system_error>
#include <thread>
#include <type_traits>
#include <utility>
#include <variant>
#include <vector>
#include <version>
#if _MSC_VER
# include <intrin.h>
@@ -75,6 +81,7 @@ export module fmt;
#include "fmt/os.h"
#include "fmt/printf.h"
#include "fmt/xchar.h"
#include "fmt/std.h"
// gcc doesn't yet implement private module fragments
#if !FMT_GCC_VERSION