MSVC has an open bug that prevents a.o. importing both fmt and std modules in some use cases (i.e. depends which functionality one uses from the std) due to the mixing of std includes inside fmt itself and using import std.
For example:
error C2572: 'std::enable_if': redefinition of default argument: parameter 1
It is possible to work around this by replacing std includes inside fmt with import std instead, and including the C headers for the few types and functions defined outside the std namespace (because these are not exported from the std module):
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <time.h>
Maybe something worth considering with an optional feature macro?
MSVC has an open bug that prevents a.o. importing both fmt and std modules in some use cases (i.e. depends which functionality one uses from the std) due to the mixing of std includes inside fmt itself and using
import std.For example:
It is possible to work around this by replacing std includes inside fmt with
import stdinstead, and including the C headers for the few types and functions defined outside thestdnamespace (because these are not exported from thestdmodule):Maybe something worth considering with an optional feature macro?