Issue #487: binding std::vector with E non-copyable
| 32 | |
| 33 | /// Issue #487: binding std::vector<E> with E non-copyable |
| 34 | class E_nc { |
| 35 | public: |
| 36 | explicit E_nc(int i) : value{i} {} |
| 37 | E_nc(const E_nc &) = delete; |
| 38 | E_nc &operator=(const E_nc &) = delete; |
| 39 | E_nc(E_nc &&) = default; |
| 40 | E_nc &operator=(E_nc &&) = default; |
| 41 | |
| 42 | int value; |
| 43 | }; |
| 44 | |
| 45 | template <class Container> |
| 46 | Container *one_to_n(int n) { |
no outgoing calls