Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 10.0.1 20200121 (experimental)

Options
Warnings
Boost 1.72.0
C++2a(GNU)
no pedantic

noname-1

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-head/include -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:21:95: error: no matching function for call to 'make_shared<template<int B> struct Container<1>::Internal>(std::integral_constant<int, 8>)'
   21 |   auto const fails = std::make_shared<Container<1>::Internal>(std::integral_constant<int, 8>{});
      |                                                                                               ^
In file included from /opt/wandbox/gcc-head/include/c++/10.0.1/memory:83,
                 from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/10.0.1/bits/shared_ptr.h:856:5: note: candidate: 'template<class _Tp, class ... _Args> std::shared_ptr<_Tp> std::make_shared(_Args&& ...)'
  856 |     make_shared(_Args&&... __args)
      |     ^~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/10.0.1/bits/shared_ptr.h:856:5: note:   template argument deduction/substitution failed:
Exit Code:
1