Open
Description
Hi,
I ran into this when I included cppserver in a custom C++ project, and was specifically including server/asio/tcp_client.h
.
This file is including several files from CppCommon
some of them (for example: /cppserver/modules/CppCommon/include/system/stack_trace.inl
and /cppserver/modules/CppCommon/include/system/source_location.inl
) depend on the fmt library but do not specifically include the fmt header file they depend on. This creates an issue for compilation unless the user will include the fmt header before including the high level file from cppserver
So for server/asio/tcp_client.h
, this is required:
cppserver/modules/CppCommon/modules/fmt/include/fmt/ostream.h"
server/asio/tcp_client.h
I think it would be better if these files explicitly include the fmt header file they depend on.
Metadata
Metadata
Assignees
Labels
No labels