mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-04 13:41:36 +00:00
clang-tidy fixes related to PR #3250
This commit is contained in:
@@ -12,7 +12,7 @@ namespace class_sh_basic {
|
||||
struct atyp { // Short for "any type".
|
||||
std::string mtxt;
|
||||
atyp() : mtxt("DefaultConstructor") {}
|
||||
atyp(const std::string &mtxt_) : mtxt(mtxt_) {}
|
||||
explicit atyp(const std::string &mtxt_) : mtxt(mtxt_) {}
|
||||
atyp(const atyp &other) { mtxt = other.mtxt + "_CpCtor"; }
|
||||
atyp(atyp &&other) noexcept { mtxt = other.mtxt + "_MvCtor"; }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user