Click here to Skip to main content
15,895,799 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 8:31
mvahoney the codewitch8-Feb-21 8:31 
GeneralRe: Unpopular opinions: LINQ Pin
Daniel Pfeffer8-Feb-21 8:39
professionalDaniel Pfeffer8-Feb-21 8:39 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 8:44
mvahoney the codewitch8-Feb-21 8:44 
GeneralRe: Unpopular opinions: LINQ Pin
Roger House9-Feb-21 8:14
Roger House9-Feb-21 8:14 
GeneralRe: Unpopular opinions: LINQ Pin
Rick York8-Feb-21 16:12
mveRick York8-Feb-21 16:12 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 16:19
mvahoney the codewitch8-Feb-21 16:19 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet9-Feb-21 1:26
professionalafigegoznaet9-Feb-21 1:26 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 1:32
mvahoney the codewitch9-Feb-21 1:32 
No. I mean like this:

C++
struct myForward;
std::unordered_map<std::string,myForward*> m;
...


Except I'd even go as far as to eliminate the forward declaration entirely.

The above won't work, BTW on most implementations of the STL, although there's nothing in the spec that says it won't work but nor does it guarantee it does. It works in Boost's unordered_map, but because they went out of their way to make it work in how they implemented unordered_map.

Strangely enough, the above will usually work if you replace it with std::map
Real programmers use butterflies

GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet9-Feb-21 1:47
professionalafigegoznaet9-Feb-21 1:47 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet8-Feb-21 22:29
professionalafigegoznaet8-Feb-21 22:29 
GeneralRe: Unpopular opinions: LINQ Pin
Tiger125069-Feb-21 0:41
Tiger125069-Feb-21 0:41 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet9-Feb-21 0:45
professionalafigegoznaet9-Feb-21 0:45 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 1:02
mvahoney the codewitch9-Feb-21 1:02 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet9-Feb-21 2:10
professionalafigegoznaet9-Feb-21 2:10 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 1:14
mvahoney the codewitch9-Feb-21 1:14 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet9-Feb-21 1:21
professionalafigegoznaet9-Feb-21 1:21 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 1:37
mvahoney the codewitch9-Feb-21 1:37 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet9-Feb-21 1:43
professionalafigegoznaet9-Feb-21 1:43 
GeneralRe: Unpopular opinions: LINQ Pin
harold aptroot8-Feb-21 8:41
harold aptroot8-Feb-21 8:41 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 9:15
mvahoney the codewitch8-Feb-21 9:15 
GeneralRe: Unpopular opinions: LINQ Pin
Gerry Schmitz8-Feb-21 9:39
mveGerry Schmitz8-Feb-21 9:39 
GeneralRe: Unpopular opinions: LINQ Pin
Sander Rossel8-Feb-21 9:42
professionalSander Rossel8-Feb-21 9:42 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 9:49
mvahoney the codewitch8-Feb-21 9:49 
GeneralRe: Unpopular opinions: LINQ Pin
Sander Rossel8-Feb-21 10:21
professionalSander Rossel8-Feb-21 10:21 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 13:13
mvahoney the codewitch8-Feb-21 13:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.