Click here to Skip to main content
15,888,239 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 4:50
mveGerry Schmitz27-Sep-23 4:50 
GeneralRe: I have a great idea for an article but I lack the words Pin
honey the codewitch26-Sep-23 22:45
mvahoney the codewitch26-Sep-23 22:45 
GeneralRe: I have a great idea for an article but I lack the words Pin
Gerry Schmitz27-Sep-23 4:42
mveGerry Schmitz27-Sep-23 4:42 
GeneralRe: I have a great idea for an article but I lack the words Pin
honey the codewitch27-Sep-23 6:09
mvahoney the codewitch27-Sep-23 6:09 
GeneralRe: I have a great idea for an article but I lack the words Pin
Mike Hankey26-Sep-23 16:16
mveMike Hankey26-Sep-23 16:16 
GeneralRe: I have a great idea for an article but I lack the words Pin
honey the codewitch26-Sep-23 22:44
mvahoney the codewitch26-Sep-23 22:44 
GeneralRe: I have a great idea for an article but I lack the words Pin
Andreas Saurwein27-Sep-23 2:37
Andreas Saurwein27-Sep-23 2:37 
GeneralRe: I have a great idea for an article but I lack the words Pin
jschell27-Sep-23 5:50
jschell27-Sep-23 5: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 6:07
mvahoney the codewitch27-Sep-23 6:07 
GeneralRe: I have a great idea for an article but I lack the words Pin
jschell29-Sep-23 11:00
jschell29-Sep-23 11:00 
GeneralRe: I have a great idea for an article but I lack the words Pin
Gary R. Wheeler27-Sep-23 14:15
Gary R. Wheeler27-Sep-23 14:15 
Generalworldle 613 2/6 Pin
jmaida26-Sep-23 13:58
jmaida26-Sep-23 13:58 
GeneralIllya Kuryakin is not available. Pin
OriginalGriff25-Sep-23 23:50
mveOriginalGriff25-Sep-23 23:50 
GeneralRe: Illya Kuryakin is not available. Pin
Cp-Coder26-Sep-23 1:08
Cp-Coder26-Sep-23 1:08 
GeneralRe: Illya Kuryakin is not available. Pin
Mike Hankey26-Sep-23 1:39
mveMike Hankey26-Sep-23 1:39 
GeneralRe: Illya Kuryakin is not available. Pin
Nelek26-Sep-23 1:44
protectorNelek26-Sep-23 1:44 
GeneralRe: Illya Kuryakin is not available. Pin
Richard MacCutchan26-Sep-23 2:26
mveRichard MacCutchan26-Sep-23 2:26 
GeneralRe: Illya Kuryakin is not available. Pin
Nelek27-Sep-23 8:41
protectorNelek27-Sep-23 8:41 
GeneralRe: Illya Kuryakin is not available. Pin
BernardIE531726-Sep-23 7:23
BernardIE531726-Sep-23 7:23 
GeneralRe: Illya Kuryakin is not available. Pin
Nelek27-Sep-23 8:42
protectorNelek27-Sep-23 8:42 
GeneralRe: Illya Kuryakin is not available. Pin
Gary R. Wheeler27-Sep-23 14:17
Gary R. Wheeler27-Sep-23 14:17 
GeneralRe: Illya Kuryakin is not available. Pin
Pete O'Hanlon26-Sep-23 3:48
mvePete O'Hanlon26-Sep-23 3:48 
GeneralRe: Illya Kuryakin is not available. Pin
MarkTJohnson26-Sep-23 4:12
professionalMarkTJohnson26-Sep-23 4:12 
GeneralRe: Illya Kuryakin is not available. Pin
BernardIE531726-Sep-23 5:30
BernardIE531726-Sep-23 5:30 
GeneralRe: Illya Kuryakin is not available. Pin
StarNamer@work26-Sep-23 13:29
professionalStarNamer@work26-Sep-23 13: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.