« first day (1461 days earlier)      last day (1382 days later) » 

7:10 AM
how would I protect my classs members so that only its base class would be aware of it? eg: superclass B has a private constructor, on which its base class A could instantiate B?
in other words, I have a templated class and I'm using the CRTP pattern. this class is some sort of a "factory", but mostly the objects it attempts to construct have a private constructor
 
 
2 hours later…
9:40 AM
What would be a good master thesis that would involve C++ ? I'm offered 2 subjects involving C++, network programming in C++ and multithreading in C++. I'm not really interested in neither of those. I'm more into pure C++ , the theory behind it , optimization and stuff. Does anything come to your mind in regards to that, maybe a certain topic ? I haven't really done any research online, thought it might be best to ask here first.
 
 
4 hours later…
2:09 PM
@PeterT ok thank you!
 
@domocar1 If I were in your place, I would have selected any one and would have learnt the other all on my own. Knowledge never goes waste :). BTW, Multithreading in C++ is a pure C++ concept ;)
 
 
1 hour later…
3:36 PM
@d4rk4ng31 I will pick multithreading if I'm gonna be out of options, surely. But I was just wondering if I could maybe find some another topic which would intrigue me more.
 
3:54 PM
class Solution {
public:
    string findReplaceString(string S, vector<int>& indexes, vector<string>& sources, vector<string>& targets) {
        vector<pair<int, int>> sorted;
        for (int i = 0 ; i < indexes.size(); i++)
            sorted.push_back({indexes[i], i});
        sort(sorted.rbegin(), sorted.rend());
        for (auto ind : sorted) {
            int i = ind.first;
            string s = sources[ind.second], t = targets[ind.second];
            if (S.substr(i, s.length()) == s)
if (S.substr(i, s.length()) == s) doesnt this evaluate to (i, True) and then true/false isnt a length?
 
 
7 hours later…
10:44 PM
stackoverflow.com/questions/62853805/… -- I am really trying to understand the down votes, but I can't
 

« first day (1461 days earlier)      last day (1382 days later) »