mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-05 06:01:36 +00:00
[smart_holder] clang-tidy fixes (related to recent clang-tidy changes on master). (#3053)
* clang-tidy fixes (related to recent clang-tidy changes on master). * More clang-tidy fixes.
This commit is contained in:
committed by
GitHub
parent
274b014578
commit
8d1e0b3903
@@ -25,7 +25,7 @@ struct uconsumer { // unique_ptr consumer
|
||||
void pass_rref(std::unique_ptr<atyp> &&obj) { held = std::move(obj); }
|
||||
std::unique_ptr<atyp> rtrn_valu() { return std::move(held); }
|
||||
std::unique_ptr<atyp> &rtrn_lref() { return held; }
|
||||
const std::unique_ptr<atyp> &rtrn_cref() { return held; }
|
||||
const std::unique_ptr<atyp> &rtrn_cref() const { return held; }
|
||||
};
|
||||
|
||||
// clang-format off
|
||||
|
||||
Reference in New Issue
Block a user