« first day (1689 days earlier)      last day (739 days later) » 

11:08 AM
hey
Got an error
segment fault
class File
{
    std::array<std::vector<std::string>, 2> lines;
    std::string tempLine, tempLine2;

public:
    void setFile(std::string const& firstFile, std::string const& secondFile) {
        std::ifstream fileOne(firstFile);
        if (!fileOne) throw std::runtime_error("error opening first file");

        std::ifstream fileTwo(secondFile);
        if (!fileTwo) throw std::runtime_error("error opening second file");
        int line=0;
        while(getline(fileOne, tempLine)) {
          lines[line][0] = tempLine;
 
4 messages moved from Lounge<C+plus>
 
 
2 hours later…
1:08 PM
> Sometimes, you’re on a team, and you’re busy banging out the code, and somebody comes up to your desk, coffee mug in hand, and starts rattling on about how if you use multi-threaded COM apartments, your app will be 34% sparklier, and it’s not even that hard, because he’s written a bunch of templates, and all you have to do is multiply-inherit from 17 of his templates, each taking an average of 4 arguments, and you barely even have to write the body of the function.
> It’s just a gigantic list of multiple-inheritance from different classes and hey, presto, multi-apartment threaded COM.
> And your eyes are swimming, and you have no friggin’ idea what this frigtard is talking about, but he just won’t go away, and even if he does go away, he’s just going back into his office to write more of his clever classes constructed entirely from multiple inheritance from templates, without a single implementation body at all,
> and it’s going to crash like crazy and you’re going to get paged at night to come in and try to figure it out because he’ll be at some goddamn “Design Patterns” meetup.
lol I love this guy
 
@fredoverflow do you use COM in your job that often?
 
@edition Sure, never heard of the dot COM boom?
7 messages moved from Lounge<C+plus>
 
 
7 hours later…
8:10 PM
 
user1804599
 
2 messages moved from Lounge<C+plus>
 

« first day (1689 days earlier)      last day (739 days later) »