search for: factorye

Displaying 4 results from an estimated 4 matches for "factorye".

Did you mean: factory
2013 Nov 21
3
[LLVMdev] ErrorOr<> conflicts with unique_ptr<>
...following simple examples to not error? Can some of these be fixed in ErrorOr.h? Or am I totally not getting something? -Nick struct Foo { void doit(); }; std::unique_ptr<Foo> factoryU() { std::unique_ptr<Foo> f(new Foo); return f; // works as expected } ErrorOr<Foo*> factoryE() { ErrorOr<Foo*> f = new Foo; return f; // works as expected } ErrorOr<std::unique_ptr<Foo>> factoryEU() { std::unique_ptr<Foo> f(new Foo); return f; // ERROR: call to implicitly-deleted copy constructor of 'std::__1::unique_ptr<Foo, std::__1::default_delet...
2013 Nov 22
0
[LLVMdev] ErrorOr<> conflicts with unique_ptr<>
...xed in ErrorOr.h? Or am I > totally not getting something? > > -Nick > > > struct Foo { void doit(); }; > > > std::unique_ptr<Foo> factoryU() { > std::unique_ptr<Foo> f(new Foo); > return f; // works as expected > } > > ErrorOr<Foo*> factoryE() { > ErrorOr<Foo*> f = new Foo; > return f; // works as expected > } > > ErrorOr<std::unique_ptr<Foo>> factoryEU() { > std::unique_ptr<Foo> f(new Foo); > return f; // ERROR: call to implicitly-deleted copy constructor of > 'std::__1::uni...
2013 Nov 22
3
[LLVMdev] ErrorOr<> conflicts with unique_ptr<>
...ed in ErrorOr.h? Or am I totally not getting something? > > -Nick > > > struct Foo { void doit(); }; > > > std::unique_ptr<Foo> factoryU() { > std::unique_ptr<Foo> f(new Foo); > return f; // works as expected > } > > ErrorOr<Foo*> factoryE() { > ErrorOr<Foo*> f = new Foo; > return f; // works as expected > } > > ErrorOr<std::unique_ptr<Foo>> factoryEU() { > std::unique_ptr<Foo> f(new Foo); > return f; // ERROR: call to implicitly-deleted copy constructor of 'std::__1::unique_...
2013 Nov 22
0
[LLVMdev] ErrorOr<> conflicts with unique_ptr<>
...something? >> >> -Nick >> >> >> struct Foo { void doit(); }; >> >> >> std::unique_ptr<Foo> factoryU() { >> std::unique_ptr<Foo> f(new Foo); >> return f; // works as expected >> } >> >> ErrorOr<Foo*> factoryE() { >> ErrorOr<Foo*> f = new Foo; >> return f; // works as expected >> } >> >> ErrorOr<std::unique_ptr<Foo>> factoryEU() { >> std::unique_ptr<Foo> f(new Foo); >> return f; // ERROR: call to implicitly-deleted copy constructo...