xo-expression: Borrow ctor
This commit is contained in:
parent
c7a030aa37
commit
b6ba761551
1 changed files with 2 additions and 0 deletions
|
|
@ -257,6 +257,8 @@ namespace xo {
|
|||
template<typename T>
|
||||
class Borrow {
|
||||
public:
|
||||
Borrow() = default;
|
||||
|
||||
template <typename S>
|
||||
Borrow(rp<S> const & x) : ptr_(x.get()) {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue