Quantcast
Channel: User Peter - Reinstate Monica - Stack Overflow
Browsing all 223 articles
Browse latest View live

Comment by Peter - Reinstate Monica on What is the purpose of `enum class`...

So after -- what is it, four decades? -- C++ has finally caught up with Ada83's derived types! The "bare metal" crowd has a hard time coming around to built-in safety features.

View Article


Comment by Peter - Reinstate Monica on C++: Use free function as member function

@RemyLebeau Yes, on the language level; but not on the object file level, which is what the OP tries to exploit. If you knew the name mangling scheme I suppose you could write a free function (perhaps...

View Article


Comment by Peter - Reinstate Monica on How to create user defined format...

@Giogre Relax. They most likely don't know or are distracted. No worries.

View Article

Comment by Peter - Reinstate Monica on _Atomic struct assignment of arbitrary...

@EugeneSh. One could also simply declare many atomic members.

View Article

Comment by Peter - Reinstate Monica on Why does GCC’s static analyser falsely...

To me, the code looks fine, with or without casts. Looks as if gcc is mistaken. Does that only happen with three indirections?

View Article


Comment by Peter - Reinstate Monica on Why does GCC’s static analyser falsely...

In other words, a regression.

View Article

Comment by Peter - Reinstate Monica on Why does my C code for printing out...

I'd suggest one array per character, that should make printing much easier.

View Article

Comment by Peter - Reinstate Monica on Why does x crash when I give it a...

@AlanBirtles Isn't that one? Better than most first posts!

View Article


Comment by Peter - Reinstate Monica on Why does x crash when I give it a...

@DrewDormann Well, it does not crash!

View Article


Comment by Peter - Reinstate Monica on MSYS2 paste problem when pasting...

For some reason, a recent msys2 mintty still interprets the lines as commands, even if pasted in quotes (after saying bind 'set enable-bracketed-paste off'). Before, it didn't paste anything and just...

View Article

Comment by Peter - Reinstate Monica on Why is the memory layout of properties...

On architectures that support unaligned memory access, most compilers support an option or pragma to "pack" the structure. But the usual demand is speed over space, and aligned access is usually...

View Article

Comment by Peter - Reinstate Monica on What is the purpose of `enum class`...

So after -- what is it, four decades? -- C++ has finally caught up with Ada83's derived types! The "bare metal" crowd has a hard time coming around to built-in safety features.

View Article

Comment by Peter - Reinstate Monica on C++: Use free function as member function

@RemyLebeau Yes, on the language level; but not on the object file level, which is what the OP tries to exploit. If you knew the name mangling scheme I suppose you could write a free function (perhaps...

View Article


Comment by Peter - Reinstate Monica on How do I determine the evaluation...

@Mark Yes, the compiler should be deterministic here (and, additionally, not depend on unrelated side conditions like the time of day etc.). But the compiler is free to do things differently from case...

View Article

Comment by Peter - Reinstate Monica on Speed problems with memcpy()

Concurring with @PepijnKramer here. Windows is simply not a real time operating system. That said, you may try to run a test application with real time priority to prevent other programs from...

View Article


Comment by Peter - Reinstate Monica on Why gcc can't inline function pointers...

The machine code is not really obvious to me... You may be interested in godbolt.org.

View Article

Comment by Peter - Reinstate Monica on Github Actions ci not finding during...

A linking error does not mean that stdio.h cannot be found; that would affect compilation. An error at the linking stage means that a library or object file which contains the implementation of symbols...

View Article


Comment by Peter - Reinstate Monica on Github Actions ci not finding symbols...

A linking error does not mean that stdio.h cannot be found; that would affect compilation. An error at the linking stage means that a library or object file which contains the implementation of symbols...

View Article

Comment by Peter - Reinstate Monica on Why does C++ introduce a "::" instead...

@n.m.couldbeanAI So this is s factual duplicate but we cannot close it because the answer is on another stack. Are there any solutions for that? (Other than simply closing it anyway for some pretended...

View Article

Answer by Peter - Reinstate Monica for Why does C++ introduce a "::" instead...

I hope this question will be closed soon (not because it is bad but because it has been asked and answered over at softwareenineering (where it doesn't belong either, by the way: It should be in...

View Article
Browsing all 223 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>