python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Replace mem::uninitialized with MaybeUninit
I'm working on a project around embedded systems that needs to use filesystem. I want to use liitlefs crate in rust but it uses mem::uninitialized that deprecated since 1.39.0 .
https://github.com/bra...

p3zhy
Votes: 0
Answers: 1
C++ bit field member variable initialization value (UE4 example)
I'm wondering what value a bit-field class member variable will have if it is not explicitly initialized.
Using an example from unreal engine 4.27:
//member variable of UPrimitiveComponent
//there are...
badger5000
Votes: 0
Answers: 1
Is there a PEP styleguide for class member initialization?
Assuming I want to initialize every member variable in __init__, is there a recommended approach or style according to PEP? Especially for classes where the constructor also calls methods and has a bu...
mm rnm
Votes: 0
Answers: 0
C++ - Why does aggregate initialization not work with template struct
This code works, without having to specify a constructor:
struct Foo
{
int a;
int b;
};
//...
int a1, b1;
Foo foo = {a1, b1};
If I make Foo a template, it doesn't work.
template<...
Newline
Votes: 0
Answers: 1