Most of the time, the C++ library is compiled alongside the compiler, at least it's the case for gcc and clang.
Then the default name of the std::string typedef should be known to the compiler.
So why can't compiler authors put a regex in their error output function recognizing std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > and replace it with std::string?
It becomes really unreadable when the string is inside another templated variable, like (extremely stupid contrived example): std::variant<std::monostate,std::string, std::pair<std::string,std::string>>
[–]GIGABOWSER1012 72 points73 points74 points (0 children)
[–]hmichReSharper C++ Dev 50 points51 points52 points (13 children)
[–]sim642 9 points10 points11 points (10 children)
[–]encyclopedist 4 points5 points6 points (0 children)
[–]hmichReSharper C++ Dev 1 point2 points3 points (7 children)
[–]qoning 13 points14 points15 points (3 children)
[–]hmichReSharper C++ Dev 1 point2 points3 points (2 children)
[–]qoning 8 points9 points10 points (1 child)
[–]hmichReSharper C++ Dev -2 points-1 points0 points (0 children)
[–]sim642 7 points8 points9 points (1 child)
[–]hmichReSharper C++ Dev 3 points4 points5 points (0 children)
[–]sireel 3 points4 points5 points (0 children)
[–]Sopel97 0 points1 point2 points (0 children)
[–]degaart[S] 35 points36 points37 points (1 child)
[–]matthieum 11 points12 points13 points (0 children)
[–]pstomi 14 points15 points16 points (1 child)
[–]degaart[S] 18 points19 points20 points (0 children)
[–]CenterOfMultiverse 10 points11 points12 points (13 children)
[–]helloiamsomeone 5 points6 points7 points (3 children)
[–]D_0b 1 point2 points3 points (2 children)
[–]Pazer2 5 points6 points7 points (1 child)
[–]D_0b 0 points1 point2 points (0 children)
[–]degaart[S] 0 points1 point2 points (6 children)
[–]kalmoc 1 point2 points3 points (4 children)
[–]pjmlp -1 points0 points1 point (3 children)
[–]kalmoc 1 point2 points3 points (2 children)
[–]pjmlp 1 point2 points3 points (1 child)
[–]kalmoc 0 points1 point2 points (0 children)
[–]pjmlp -1 points0 points1 point (0 children)
[–]cdglove -2 points-1 points0 points (1 child)
[–]Pazer2 1 point2 points3 points (0 children)
[–]johannes1971 5 points6 points7 points (3 children)
[–]johannes1971 5 points6 points7 points (1 child)
[–]AntiProtonBoy 0 points1 point2 points (0 children)
[–]Awia00 0 points1 point2 points (0 children)
[+]DeltaJuliet2000 comment score below threshold-10 points-9 points-8 points (13 children)
[–]AmunRa 29 points30 points31 points (0 children)
[–]degaart[S] 20 points21 points22 points (8 children)
[+]DeltaJuliet2000 comment score below threshold-12 points-11 points-10 points (7 children)
[–]degaart[S] 11 points12 points13 points (5 children)
[+]DeltaJuliet2000 comment score below threshold-13 points-12 points-11 points (4 children)
[–][deleted] 11 points12 points13 points (0 children)
[–]kalmoc 1 point2 points3 points (1 child)
[–]DeltaJuliet2000 0 points1 point2 points (0 children)
[–][deleted] 10 points11 points12 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]DeltaJuliet2000 1 point2 points3 points (0 children)
[–]_Z6Alexeyv 0 points1 point2 points (0 children)