Skip to content

Commit

Permalink
mq松鼠修改第二题的编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
CSTGluigi committed Jan 21, 2024
1 parent 22f7ae1 commit 22e4c23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/群友提交/第02题/mq松鼠.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
//!gcc !clang
//msvc
#include <format>
#include <iostream>
#include <numbers>

struct myType {
constexpr myType(std::string str_):str(str_) {}

std::string operator()(auto &&... args) {
template<class ...T>
std::string operator()(T &&... args) {
return std::vformat(str, std::make_format_args(args...));
}

std::string str;
};
myType operator ""_f(const char* str , unsigned long long size) {
myType operator ""_f(const char* str , size_t x) {
return {str};
}
int main(){
Expand Down

0 comments on commit 22e4c23

Please sign in to comment.