Reputation
352
Top tag
Next privilege 500 Rep.
Access review queues
Badges
2 11
Impact
~10k people reached

  • 0 posts edited
  • 0 helpful flags
  • 5 votes cast
Jun
11
accepted If I #include a file, do I need to have a valid path to any headers #included in the included file
Jun
11
comment If I #include a file, do I need to have a valid path to any headers #included in the included file
Yes the real question you mention above was what I was after. Basically, avoid putting some_other.h in libcommon.h if you can avoid is the best approach.
Jun
10
asked If I #include a file, do I need to have a valid path to any headers #included in the included file
May
22
awarded  Notable Question
Nov
5
awarded  Popular Question
Oct
4
accepted API to get data, caller may not know how much? How to allocate buffer size
Oct
4
comment API to get data, caller may not know how much? How to allocate buffer size
I remember working with some of the Windows API functions yes. This approach is much better although I think best approach is from Useless - although more work.
Oct
4
comment API to get data, caller may not know how much? How to allocate buffer size
Interesting. I am looking at __dirstream (DIR) now and see it is a struct with an offset into the block (the block could be a linked list or an array I guess).
Oct
4
asked API to get data, caller may not know how much? How to allocate buffer size
Jun
25
awarded  Popular Question
Jun
18
accepted Is storing pointer (of new'd object) in static collection from object constructor a common idiom in C++
Jun
18
comment Is storing pointer (of new'd object) in static collection from object constructor a common idiom in C++
Well spotted! I have edited.
Jun
18
revised Is storing pointer (of new'd object) in static collection from object constructor a common idiom in C++
edited body
Jun
18
awarded  Commentator
Jun
18
comment Is storing pointer (of new'd object) in static collection from object constructor a common idiom in C++
@DanPichelman - if not created correctly print error. Its not important to question.
Jun
18
asked Is storing pointer (of new'd object) in static collection from object constructor a common idiom in C++
Mar
13
awarded  Popular Question
Jan
31
comment Maintaining independence between modules
OK, I see what mean.
Jan
31
accepted Maintaining independence between modules
Jan
31
comment Maintaining independence between modules
Not sure I agree with your specific C++ comment about exposing private member data in a class in header file. Well true but isn't that the same for Java? And you could just make an API that hid all that.