Click here to Skip to main content
15,558,870 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 9:31
mvahoney the codewitch8-Feb-21 9:31 
GeneralRe: Unpopular opinions: LINQ Pin
Daniel Pfeffer8-Feb-21 9:39
professionalDaniel Pfeffer8-Feb-21 9:39 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 9:44
mvahoney the codewitch8-Feb-21 9:44 
GeneralRe: Unpopular opinions: LINQ Pin
Roger House9-Feb-21 9:14
Roger House9-Feb-21 9:14 
GeneralRe: Unpopular opinions: LINQ Pin
Rick York8-Feb-21 17:12
mveRick York8-Feb-21 17:12 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 17:19
mvahoney the codewitch8-Feb-21 17:19 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet9-Feb-21 2:26
professionalafigegoznaet9-Feb-21 2:26 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:32
mvahoney the codewitch9-Feb-21 2: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 2:47
professionalafigegoznaet9-Feb-21 2:47 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet8-Feb-21 23:29
professionalafigegoznaet8-Feb-21 23:29 
GeneralRe: Unpopular opinions: LINQ Pin
Tiger125069-Feb-21 1:41
Tiger125069-Feb-21 1:41 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet9-Feb-21 1:45
professionalafigegoznaet9-Feb-21 1:45 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:02
mvahoney the codewitch9-Feb-21 2:02 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet9-Feb-21 3:10
professionalafigegoznaet9-Feb-21 3:10 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:14
mvahoney the codewitch9-Feb-21 2:14 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet9-Feb-21 2:21
professionalafigegoznaet9-Feb-21 2:21 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch9-Feb-21 2:37
mvahoney the codewitch9-Feb-21 2:37 
GeneralRe: Unpopular opinions: LINQ Pin
afigegoznaet9-Feb-21 2:43
professionalafigegoznaet9-Feb-21 2:43 
GeneralRe: Unpopular opinions: LINQ Pin
harold aptroot8-Feb-21 9:41
harold aptroot8-Feb-21 9:41 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 10:15
mvahoney the codewitch8-Feb-21 10:15 
GeneralRe: Unpopular opinions: LINQ Pin
Gerry Schmitz8-Feb-21 10:39
mveGerry Schmitz8-Feb-21 10:39 
GeneralRe: Unpopular opinions: LINQ Pin
Sander Rossel8-Feb-21 10:42
professionalSander Rossel8-Feb-21 10:42 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 10:49
mvahoney the codewitch8-Feb-21 10:49 
GeneralRe: Unpopular opinions: LINQ Pin
Sander Rossel8-Feb-21 11:21
professionalSander Rossel8-Feb-21 11:21 
GeneralRe: Unpopular opinions: LINQ Pin
honey the codewitch8-Feb-21 14:13
mvahoney the codewitch8-Feb-21 14: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.