Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 8 years ago

Language

Compiler

Options

Author

anonymous

almost 8 years ago

trie
merge_sort

$
prog.cc:10:16: warning: unused parameter 'val' [-Wunused-parameter]
    A(const T& val)
               ^
prog.cc:16:16: warning: unused parameter 'val' [-Wunused-parameter]
    A(const T& val)
               ^
prog.cc:24:7: error: no matching constructor for initialization of 'A'
    A a(4);
      ^ ~
prog.cc:7:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const A' for 1st argument
struct A
       ^
prog.cc:7:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'A' for 1st argument
struct A
       ^
prog.cc:10:5: note: candidate template ignored: substitution failure [with T = int]: a non-type template parameter cannot have type 'typename std::enable_if<std::is_integral<int>::value, target_t>::type' (aka 'float')
    A(const T& val)
    ^
prog.cc:16:5: note: candidate template ignored: requirement 'std::is_floating_point<int>::value' was not satisfied [with T = int]
    A(const T& val)
    ^
prog.cc:25:7: error: no matching constructor for initialization of 'A'
    A b(4.4);
      ^ ~~~
prog.cc:7:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'double' to 'const A' for 1st argument
struct A
       ^
prog.cc:7:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'double' to 'A' for 1st argument
struct A
       ^
prog.cc:10:5: note: candidate template ignored: requirement 'std::is_integral<double>::value' was not satisfied [with T = double]
    A(const T& val)
    ^
prog.cc:16:5: note: candidate template ignored: substitution failure [with T = double]: a non-type template parameter cannot have type 'typename std::enable_if<std::is_floating_point<double>::value, target_t>::type' (aka 'float')
    A(const T& val)
    ^
2 warnings and 2 errors generated.
Exit Code:
1