| 49 | } |
| 50 | |
| 51 | int main() |
| 52 | { |
| 53 | fixed_string fs{"Hello, C++20"}; |
| 54 | |
| 55 | print(FormatString<"%s, %s">{}, "Hello", "C++20"); |
| 56 | |
| 57 | print("%s, %s"_fs, "Hello", "C++20"); |
| 58 | |
| 59 | // #C We can instantiate the template with a string |
| 60 | FixedStringContainer<"Hello, C++"> fc{}; |
| 61 | fc.print(); // #D For those who believe it only if they see |
| 62 | // it |
| 63 | } |