Back to Basics: Exceptionssafely call throwing code 4. Retire wrapper functions as appropriateRefactoring Example 105 bool FileReader::LoadFile(ByteStream& input) { fileSizeType aSize; IOError iErr; File f(m_FileName ByteStream input(f.GetSize() + 1); f.Read(input.data(), input.size()); return input; } bool FileReader::LoadFile(ByteStream& input) { try { input = load_file(m_FileName); return true;0 码力 | 111 页 | 4.87 MB | 6 月前3
共 1 条
- 1
相关搜索词













