-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into sean/implicit-string-conv
- Loading branch information
Showing
13 changed files
with
215 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,6 @@ target_sources(nanofmt PRIVATE | |
"config.h" | ||
"format.h" | ||
"format.inl" | ||
"forward.h" | ||
"std_string.h" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) Sean Middleditch and contributors. See accompanying LICENSE.md for copyright details. | ||
|
||
#ifndef NANOFMT_FORWARD_H_ | ||
#define NANOFMT_FORWARD_H_ 1 | ||
#pragma once | ||
|
||
#include "config.h" | ||
|
||
namespace NANOFMT_NS { | ||
struct format_arg; | ||
struct format_args; | ||
struct format_string; | ||
struct format_string_view; | ||
struct format_output; | ||
template <typename T> | ||
struct formatter; | ||
} // namespace NANOFMT_NS | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) Sean Middleditch and contributors. See accompanying LICENSE.md for copyright details. | ||
|
||
#pragma once | ||
|
||
#if defined(NANOFMT_FORMAT_H_) | ||
# error "fwd_only_type.h should be included before format.h for the test to be correct" | ||
#endif | ||
|
||
#include "nanofmt/forward.h" | ||
|
||
struct fwd_only_type {}; | ||
|
||
namespace NANOFMT_NS { | ||
template <> | ||
struct formatter<fwd_only_type> { | ||
constexpr char const* parse(char const* in, char const*) noexcept { | ||
return in; | ||
} | ||
|
||
template <typename OutputT> | ||
void format(fwd_only_type, OutputT& output) { | ||
output.append("fwd_only_type"); | ||
} | ||
}; | ||
} // namespace NANOFMT_NS |
Oops, something went wrong.