Language
C++
Compiler
gcc 7.3.0
Options
Warnings
Don't Use Boost
C++11
-pedantic
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic
Exit Code:
1
Author
anonymous
about 6 years ago
C++
gcc 7.3.0
Author
anonymous
about 6 years ago
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic
prog.cc: In instantiation of 'Test<T> makeTest(T, ARGS ...) [with T = int; ARGS = {}]':
prog.cc:21:32: required from here
prog.cc:17:10: error: 'Test<T>::Test(T) [with T = int]' is private within this context
return Test< T >( std::move( t ) );
^~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:8:3: note: declared private here
Test( T data ) : m_data( std::move( data ) ) { }
^~~~