egeldenhuys / black-fitch

[DEPRECATED] Black-box Unit Tests for Fitchfork practicals and assignments
GNU General Public License v3.0
8 stars 4 forks source link

BUG: Use of deleted function in older compilers #4

Closed devosray closed 8 years ago

devosray commented 8 years ago

The code can't be compiled on older versions of g++ (and other compilers) due to the use of a deleted function. clang++ gives this error:

./prac3_task3_tests.cpp:111:24: error: overload resolution selected deleted operator '=' receivedOutput = captureLibraryAddBookOutput(john, books[i]);

Looking at the reference page, it is clear that this function is in fact retired.

We should consider alternative methods to allow people with older compiles (which is default on many distros) to use the unit tests.

Tested and confirmed with g++ (Debian 4.7.2-5) 4.7.2 g++ (Ubuntu 4.8.4) 4.8.4 g++ (Debian 4.9.2-10) 4.9.2

Temporary workaround: Use a newer version of g++. g++ (GCC) 6.1.1 20160602 works for me