Posts

Showing posts from June 3, 2019

Phil Collins

Image
Phil Collins Phil Collins før ein konsert i 2007. Fødd 30. januar 1951 (68 år) Fødestad Hounslow, [1] London i England Opphav Storbritannia Aktiv 1968-2011 Sjanger Progressiv rock, rock, pop, poprock, softrock, jazzfusion, R&B, storband Instrument Vokal, trommer, perkusjon, gitar, piano, klaverinstrument Stemmetype tenor Tilknytte artistar Genesis Brand X Flaming Youth The Phil Collins Big Band Plateselskap Virgin Records, Atlantic Records, Warner Bros. Records Verka som Låtskrivar, musikar, skodespelar Born Joely Collins, Lily Collins Prisar MusiCares Person of the Year, Silver Clef Award, Disney Legends, Johnny Mercer Award Philip David Charles «Phil» Collins , LVO, CBE (fødd 30. januar 1951) [2] er ein engelsk songar og låtskrivar, trommeslagar, pianist og skodespelar, mest kjend som trommeslagar og vokalist for den rockegruppa Genesis og som soloartist. Collins song solovokal på mange hittar mellom 1975 o

Structured binding on const

Image
10 Is the following code supposed to compile? #include <type_traits> void foo() { const std::pair<int, int> x = {1, 2}; auto [a, b] = x; static_assert(std::is_const_v<decltype(a)>); static_assert(std::is_const_v<decltype(b)>); } MSVC says "yes!". GCC says "oh no, man!". Clang says "no way!". So, is this an MSVC bug? The standard is not straightforward here (I had a quick look), but considering the rules for auto , I suppose, a and b should be copied discarding cv-qualifier . c++ c++17 structured-bindings share | improve this question edited 20 hours ago