Language
C++
Compiler
clang HEAD 10.0.0 (https://github.com/llvm-mirror/clang.git 65acf43270ea2894dffa0d0b292b92402f80c8cb) (https://github.com/llvm-mirror/llvm.git 2c4ca6832fa6b306ee6a7010bfb80a3f2596f824)
Options
Warnings
Boost 1.71.0
C++17
no pedantic
Raw compiler options
-Werror=unused-result
$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.71.0/clang-head/include -std=c++17 -Werror=unused-result
/////////////////////////////////////////////////////
test_status
/////////////////////////////////////////////////////
test_status : PASSED ... RESPECT+
=====================================================
/////////////////////////////////////////////////////
test_holding
-----------------------------------------------------
FileInUse(1)
--------------
[5Error]
what: File '1.txt' is already in use
[9FileError]
file: 1.txt
[4Busy]
reason: File '1.txt' is already in use
-----------------------------------------------------
AccessError(2)
--------------
[5Error]
what: Trying to work with disk 'C:'
[11AccessError]
what: Trying to work with disk 'C:'
-----------------------------------------------------
Error(3)
--------------
[5Error]
what: Something went wrong
/////////////////////////////////////////////////////
test_holding : PASSED ... RESPECT+
=====================================================
/////////////////////////////////////////////////////
test_acting
-----------------------------------------------------
-----------------------------------------------------
catched immidiately
--------------
what: File '1.txt' is already in use
-----------------------------------------------------
catched after destruction of `s`
--------------
what: File '1.txt' is already in use
-----------------------------------------------------
checked the returned status, thus prevented the action
--------------
-----------------------------------------------------
checked the returned status, but uncked, making the action do its thing
--------------
what: File '1.txt' is already in use
-----------------------------------------------------
checked and can do stuff, but on destruction of `s` it will act anyway
--------------
what: File '1.txt' is already in use
/////////////////////////////////////////////////////
test_acting : PASSED ... RESPECT+
=====================================================
Exit Code:
0