ID 5941893
Пользователь Пиляй Николай Владимирович
Время 20:58<< 28.12.2021 20:59 (24 д. 20:59) 21:02>>
Обработка 20:59 ... 20:59 (3,45 сек.)
Файл 5941893.cpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 3, осень 2021
Задача E: Is convertable
Набор тестов
Ограничения Время: 1с Память: 4000Мб
Состояние  [?]
CE Ошибка компиляции
код | результаты
In file included from main.cpp:19:0:
is_customly_convertible.h: In instantiation of 'constexpr const bool is_customly_convertible<float, float>::value':
main.cpp:56:59:   required from here
is_customly_convertible.h:48:24: error: invalid use of incomplete type 'struct Convert<float, float>'
         decltype(detect(std::declval<Convert<T, Ti>>()))>::value;
                  ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:17:8: note: declaration of 'struct Convert<float, float>'
 struct Convert;
        ^~~~~~~
main.cpp: In function 'int main()':
main.cpp:56:59: error: in argument to unary !
     static_assert(!is_customly_convertible<float, float>::value);
                                                           ^~~~~
In file included from main.cpp:19:0:
is_customly_convertible.h: In instantiation of 'constexpr const bool is_customly_convertible<int, Test>::value':
main.cpp:59:56:   required from here
is_customly_convertible.h:48:24: error: invalid use of incomplete type 'struct Convert<int, Test>'
         decltype(detect(std::declval<Convert<T, Ti>>()))>::value;
                  ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:17:8: note: declaration of 'struct Convert<int, Test>'
 struct Convert;
        ^~~~~~~
main.cpp:59:56: error: in argument to unary !
     static_assert(!is_customly_convertible<int, Test>::value);
                                                        ^~~~~
In file included from main.cpp:19:0:
is_customly_convertible.h: In instantiation of 'constexpr const bool is_customly_convertible<NoTriviallyConstructible, NoCopyConstructible>::value':
main.cpp:62:92:   required from here
is_customly_convertible.h:48:24: error: invalid use of incomplete type 'struct Convert<NoTriviallyConstructible, NoCopyConstructible>'
         decltype(detect(std::declval<Convert<T, Ti>>()))>::value;
                  ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:17:8: note: declaration of 'struct Convert<NoTriviallyConstructible, NoCopyConstructible>'
 struct Convert;
        ^~~~~~~
main.cpp:62:92: error: in argument to unary !
     static_assert(!is_customly_convertible<NoTriviallyConstructible, NoCopyConstructible>::value);
                                                                                            ^~~~~
In file included from main.cpp:19:0:
is_customly_convertible.h: In instantiation of 'constexpr const bool is_customly_convertible<NoCopyConstructible, int>::value':
main.cpp:64:71:   required from here
is_customly_convertible.h:48:24: error: invalid use of incomplete type 'struct Convert<NoCopyConstructible, int>'
         decltype(detect(std::declval<Convert<T, Ti>>()))>::value;
                  ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:17:8: note: declaration of 'struct Convert<NoCopyConstructible, int>'
 struct Convert;
        ^~~~~~~
main.cpp:64:71: error: in argument to unary !
     static_assert(!is_customly_convertible<NoCopyConstructible, int>::value);
                                                                       ^~~~~
In file included from main.cpp:19:0:
is_customly_convertible.h: In instantiation of 'constexpr const bool is_customly_convertible<int, NoCopyConstructible>::value':
main.cpp:65:71:   required from here
is_customly_convertible.h:48:24: error: invalid use of incomplete type 'struct Convert<int, NoCopyConstructible>'
         decltype(detect(std::declval<Convert<T, Ti>>()))>::value;
                  ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:17:8: note: declaration of 'struct Convert<int, NoCopyConstructible>'
 struct Convert;
        ^~~~~~~
main.cpp:65:71: error: in argument to unary !
     static_assert(!is_customly_convertible<int, NoCopyConstructible>::value);
                                                                       ^~~~~
[печатать | |
]
(1 230 b)
0.042s 0.013s 10