Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
template type that takes multiple args of any typeWarning(s): 725307824/source.cpp: In instantiation of ‘void tester_template<Args>::process(Args ...) [with Args = {int, int}]’: 725307824/source.cpp:95:24: required from here 725307824/source.cpp:64:23: warning: narrowing conversion of ‘args#0’ from ‘int’ to ‘double’ inside { } [-Wnarrowing] std::vector<double> args_vect = {args...}; ^~~~~~~~~ 725307824/source.cpp:64:23: warning: narrowing conversion of ‘args#0’ from ‘int’ to ‘double’ inside { } [-Wnarrowing] 725307824/source.cpp:64:23: warning: narrowing conversion of ‘args#1’ from ‘int’ to ‘double’ inside { } [-Wnarrowing] 725307824/source.cpp:64:23: warning: narrowing conversion of ‘args#1’ from ‘int’ to ‘double’ inside { } [-Wnarrowing] 725307824/source.cpp: In instantiation of ‘void tester_template<Args>::process(Args ...) [with Args = {int, int, int}]’: 725307824/source.cpp:96:27: required from here 725307824/source.cpp:64:23: warning: narrowing conversion of ‘args#0’ from ‘int’ to ‘double’ inside { } [-Wnarrowing] 725307824/source.cpp:64:23: warning: narrowing conversion of ‘args#0’ from ‘int’ to ‘double’ inside { } [-Wnarrowing] 725307824/source.cpp:64:23: warning: narrowing conversion of ‘args#1’ from ‘int’ to ‘double’ inside { } [-Wnarrowing] 725307824/source.cpp:64:23: warning: narrowing conversion of ‘args#1’ from ‘int’ to ‘double’ inside { } [-Wnarrowing] 725307824/source.cpp:64:23: warning: narrowing conversion of ‘args#2’ from ‘int’ to ‘double’ inside { } [-Wnarrowing] 725307824/source.cpp:64:23: warning: narrowing conversion of ‘args#2’ from ‘int’ to ‘double’ inside { } [-Wnarrowing] 725307824/source.cpp: In instantiation of ‘void tester_template<Args>::process(Args ...) [with Args = {float, double, int}]’: 725307824/source.cpp:98:34: required from here 725307824/source.cpp:64:23: warning: narrowing conversion of ‘args#2’ from ‘int’ to ‘double’ inside { } [-Wnarrowing] 725307824/source.cpp:64:23: warning: narrowing conversion of ‘args#2’ from ‘int’ to ‘double’ inside { } [-Wnarrowing] 1 2 2 3 2 3 4 5 1.123 2 2 3 2 3 4.4 5.5 2.234 3 |
λ
.NET NoSQL database for rapid development
|