1. error: default argument given for parameter 3 of ‘void split(const string&, std::vector<std::__cxx11::basic_string<char> >&, char)’ [-fpermissive]
void split(const std::string &s, std::vector<std::string> &sv, const char flag = ‘ ‘)
^
In file included from /home/zhouying/lcl/test/FotaService/src/util.cpp:5:0:
/home/zhouying/lcl/test/FotaService/include/util.h:6:6: note: previous specification in ‘void split(const string&, std::vector<std::__cxx11::basic_string<char> >&, char)’ here
void split(const std::string &s, std::vector<std::string> &sv, const char flag = ‘ ‘);
Cause: The third formal parameter in the header file util.h is set to the default value, and the third formal parameter in the function definition in util.cpp is set to the default value, resulting in preservation, delete the third formal parameter default value in the function definition in util.cpp
Read More:
- Template argument deduction/substitution failed: couldn‘t deduce template parameter [How to Solve]
- [Solved] Error in inherits(x, “theme”): argument “e2” is missing, with no default
- [Solved] Loadrunner Error: with parameter delimiters is not a parameter.
- bazel Compile Error: absl/base/policy_checks.h:79:2: error: #error “C++ versions less than C++14 are not supported.”
- C++ Compile Error: error: invalid conversion from ‘void*‘ to ‘char*‘ [-fpermissive]
- [Solved] webrtc Compile Error: ERROR: The installation of the Chrome OS default fonts failed.
- [Solved] C++ Compile Error: prerequisites are different [How to Solve]
- [Solved] C++ Compile: error LNK2019: unresolved external “XX“
- C++ clang Compile Error: error: expected unqualified-id
- The imported project “c:\Microsoft.Cpp.Default.props” was not found
- [Solved] Halcon & C# Error: HalconDotNet.HOperatorException:“HALCON error #5190: Invalid window parameter in op
- [Solved] igb Compile Error: igb_main.c:10044:7: error: implicit declaration of function ‘isdigit’
- [Solved] Software Compile Error: xdo.c:29:34: fatal error: X11/extensions/XTest.h:
- [Solved] Compile Error: undefined reference to `google::FlagRegisterer::FlagRegisterer
- [Solved] iperf Analyze Error: unable to create a new stream: Invalid argument
- C++:error C2872: ‘byte‘: ambiguous symbol [How to Solve]
- A mistake about implicitly providing default constructors
- [Solved] HALCON error #5190: Invalid window parameter
- [Solved] Vscode Error: “export ‘default‘ (imported as ‘VueRouter‘) was not found in ‘vue-router‘
- [How to Fix]Type error: must use keyword argument for key function