Displaying 3 results from an estimated 3 matches for "b0c724b4".
2012 Jun 19
1
[LLVMdev] object construction patterns and unique_ptr
snip
Forgive me if I am way off base, but if this is a "C++11" library why can't
exceptions be used to signal the error?
Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120619/b0c724b4/attachment.html>
2012 Jun 19
0
[LLVMdev] object construction patterns and unique_ptr
On Jun 18, 2012, at 1:22 PM, Nick Kledzik wrote:
>>> But this interface has become awkward to use. There are two "return" values. This method is a unique_ptr "source" but the use of a by-refernce parameter means you have to start with an uninitialized unique_ptr and the readFile() has to std::move() into it. unique_ptr is much nicer to use as a return value.
2012 Jun 18
6
[LLVMdev] object construction patterns and unique_ptr
On Jun 16, 2012, at 3:51 PM, Chris Lattner wrote:
> On Jun 15, 2012, at 3:48 PM, Nick Kledzik wrote:
>
>> In lld we have a Reader class which is a factory that takes .o file(s) and produces an in memory lld::File object(s). But in doing so, there could be I/O errors (file not readable) or file may be malformed. We are also using C++11 in lld, so we use std::unique_ptr for managing