Hi There, Why templated inline constructor cannot be called like code below ? template<typename T> class CDerived : public CBase<T> { public: CDerived() : CBase() {}// ...
Hi there what is align all about ? I know it for optimization purpose, it adds padding to speed up copying. But why is something like : *reinterpret_cast<CSomething*>(buff) ...
Hi there, Do you have any problem copying class ? ISomething& alias = getSomething() CSomething *m_pSomthingImpl; ISomething& getSomething() { return *m_pSomethingImpl; } i...
Hi there, Are there anyway to store an xvalue reference as element inside a vector without encapsulating with ptr ? ex : vector<IBase&&> What i want to achieve is : method({CC...
Hi there, Why is this valid ? void test(int & ref); test(10);
Hi There, Especially for C++ Dev, If you work for a company, Do you work mostly 7 hours in front of computer ? Dont you feel burn out, had a neckache or have problem with that...
Hi there, Is it possible to get binary form instead of c string form for column in libmysqlclient ? Seems double works. Read binary (on file), convert to text (on send to cl...
Hi There, Why I can't print DOS character in linux using putchar but showconsolefont can ?
Hi There. I derived class from instantiating template CA : public CB<T> I make specialication for type CB<T> on source file of CA. But when I used it and link it, gcc cannot ...
What do you use before C++ 17 ?
Hi there, Do you have any idea, How to solve diamond problem, which implementation is separate ? IBase + virtual foo() = 0 + virtual bar() = 0 CBase1 : IBase + foo() ov...
I'm sorry. I'm not expert enough. Just courius. What if you need to allocate pointer to 10 int. Dont you think int *p = malloc(sizeof(int) * 10) is easier to read and compat...
Hi There, how look to pinned message ? There are many messages, but I dont know how to jump to pinned message.
Hi There, I have derived classes that has same logic inside constructor. To simplifying, I take out the logic and make a new intermediary pure virtual class. Constructor in in...
Why 2nd case is 2 ?
Greetings Sir. Thank you for your response. I derive from AbstractTableModel. After I populate getValueAt method with new data, I need a way to let JTable show the new data. I...
That's what I'm going to dig deeper. Somehow, coding makes me hard to laugh, tiredness, Insomnia, hungry (fat). Do other feels same ? I love coding, I need to stay productiv...
Hi there how do you implement sizing grip for drawn object. Do you put extra rectangle, layer/bitmap or any ?
Hi folk, Are there any issue with hearing if you read/coding alot ? My hearing become more and more sensitive. Even small noise feels pain on my backside brain.
Hi There, Could anyone suggest good book for learning to make processor with digital logic ?