Click here to Skip to main content
15,848,261 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: I have a great idea for an article but I lack the words Pin
Gerry Schmitz27-Sep-23 5:50
mveGerry Schmitz27-Sep-23 5:50 
GeneralRe: I have a great idea for an article but I lack the words Pin
honey the codewitch26-Sep-23 23:45
mvahoney the codewitch26-Sep-23 23:45 
GeneralRe: I have a great idea for an article but I lack the words Pin
Gerry Schmitz27-Sep-23 5:42
mveGerry Schmitz27-Sep-23 5:42 
GeneralRe: I have a great idea for an article but I lack the words Pin
honey the codewitch27-Sep-23 7:09
mvahoney the codewitch27-Sep-23 7:09 
GeneralRe: I have a great idea for an article but I lack the words Pin
Mike Hankey26-Sep-23 17:16
mveMike Hankey26-Sep-23 17:16 
GeneralRe: I have a great idea for an article but I lack the words Pin
honey the codewitch26-Sep-23 23:44
mvahoney the codewitch26-Sep-23 23:44 
GeneralRe: I have a great idea for an article but I lack the words Pin
Andreas Saurwein27-Sep-23 3:37
Andreas Saurwein27-Sep-23 3:37 
GeneralRe: I have a great idea for an article but I lack the words Pin
jschell27-Sep-23 6:50
jschell27-Sep-23 6:50 
honey the codewitch wrote:
passing a class as a template argument to a template class, and then operating on the first class's methods from inside the second class.


Not sure how a compiler might do that now but certainly in the past it did it by creating a new class. Basically a hidden class as part of the binary build.

One can of course explicitly code the same. But one would need to do it for each case.

I did that (explicit) on occasion long ago with the early Templates in C++ because the error messages in the stack traces were useless.

You could even code that dynamically by just duplicating what the compiler does.

Seems like it would be more useful though to explain how a compiler does that, with assembler examples, rather than attempting it from scratch.

Or, I suspect, do not some C++ compilers still allow one to have it emit C rather than assembler? That would be easier (probably) to use as a demonstration of what is happening.
GeneralRe: I have a great idea for an article but I lack the words Pin
honey the codewitch27-Sep-23 7:07
mvahoney the codewitch27-Sep-23 7:07 
GeneralRe: I have a great idea for an article but I lack the words Pin
jschell29-Sep-23 12:00
jschell29-Sep-23 12:00 
GeneralRe: I have a great idea for an article but I lack the words Pin
Gary R. Wheeler27-Sep-23 15:15
Gary R. Wheeler27-Sep-23 15:15 
Generalworldle 613 2/6 Pin
jmaida26-Sep-23 14:58
jmaida26-Sep-23 14:58 
GeneralIllya Kuryakin is not available. Pin
OriginalGriff26-Sep-23 0:50
mveOriginalGriff26-Sep-23 0:50 
GeneralRe: Illya Kuryakin is not available. Pin
Cp-Coder26-Sep-23 2:08
Cp-Coder26-Sep-23 2:08 
GeneralRe: Illya Kuryakin is not available. Pin
Mike Hankey26-Sep-23 2:39
mveMike Hankey26-Sep-23 2:39 
GeneralRe: Illya Kuryakin is not available. Pin
Nelek26-Sep-23 2:44
protectorNelek26-Sep-23 2:44 
GeneralRe: Illya Kuryakin is not available. Pin
Richard MacCutchan26-Sep-23 3:26
mveRichard MacCutchan26-Sep-23 3:26 
GeneralRe: Illya Kuryakin is not available. Pin
Nelek27-Sep-23 9:41
protectorNelek27-Sep-23 9:41 
GeneralRe: Illya Kuryakin is not available. Pin
BernardIE531726-Sep-23 8:23
BernardIE531726-Sep-23 8:23 
GeneralRe: Illya Kuryakin is not available. Pin
Nelek27-Sep-23 9:42
protectorNelek27-Sep-23 9:42 
GeneralRe: Illya Kuryakin is not available. Pin
Gary R. Wheeler27-Sep-23 15:17
Gary R. Wheeler27-Sep-23 15:17 
GeneralRe: Illya Kuryakin is not available. Pin
Pete O'Hanlon26-Sep-23 4:48
subeditorPete O'Hanlon26-Sep-23 4:48 
GeneralRe: Illya Kuryakin is not available. Pin
MarkTJohnson26-Sep-23 5:12
professionalMarkTJohnson26-Sep-23 5:12 
GeneralRe: Illya Kuryakin is not available. Pin
BernardIE531726-Sep-23 6:30
BernardIE531726-Sep-23 6:30 
GeneralRe: Illya Kuryakin is not available. Pin
StarNamer@work26-Sep-23 14:29
professionalStarNamer@work26-Sep-23 14:29 

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.