Jussi
it brings confusion anyway
it brings confusion if your code is confusing
S.
it brings confusion if your code is confusing
Well codes like a[++i] = i; is hard to read anyway, but valid after C++17
Jussi
indeed, but afaik it is always the coder's responsibility to keep their code readable
Jussi
but I agree, that is stupid to allow
Anonymous
Any recommendations on how to start learning STL Lib except geekforgeeks?
You can refer to the documentation on en.cppreference.com and try doing simple problems on platforms such as TopCoder, LeetCode, Kattis, HacherRank to get a feel for data structures involved
Jussi
hackerrank is nice
Anonymous
Anonymous
https://www.udemy.com/share/100jeSBUAZcFxUQ3w=/
Not sure how in depth the coverage of STL is but I saw a video of his explanation of algorithms and it was quite easy to follow along so I would recommend his Udemy course
Anonymous
Else I would know it^^
BinaryByter
my 1990ish C++ book teaches conio and iomanip :/
BinaryByter
conio seems to be an underpowered ncurses 🤔
Anonymous
US$9.99 hmmm ( Xscore == Xcode... I can't really catch that accent
Oh is it I thought it was a free course my bad though I know that Udemy mostly has paid courses
Anonymous
I don’t know about Udemy the YouTube videos of the guy I mentioned are pretty decent
Anonymous
conio seems to be an underpowered ncurses 🤔
Dunno, weird DOS related OS stuff. This whole ecosystem is weird
Anonymous
I’m getting a libc++.dylib exception thrown when running a debug config for my project on CLion. Has anyone encountered this before?
Anonymous
Its like they saw C on unix and used it indian style :^)
BinaryByter
BinaryByter
but axcording to my geo teacher, its called outsourcing and highly profitable
BinaryByter
:^)
Anonymous
have you linked against your stl's object file?
I encountered when trying to set up a CMake project. How do I go about the linking?
BinaryByter
^^ learn using your tools, bro
Anonymous
I encountered when trying to set up a CMake project. How do I go about the linking?
Clion uses cmake iirc. If the clion gui is shitty have a look at your CMakeLists.txt
Anonymous
Clion uses cmake iirc. If the clion gui is shitty have a look at your CMakeLists.txt
Well one of my team members did most of the configs because he is more familiar with CMake. The issue arose mainly because we wanted to develop cross platform since there is at least one team member using either Linux (Ubuntu), Mac or Windows. Anyways that issue seems to be sorted. From what I read online the posts seem hinted in the direction of problems with XCode. I recently deleted the XCode application from my Mac and that caused me some issues elsewhere too. Could that be responsible for this issue as well?
Anonymous
I have only like 14GB of free space left and installing XCode itself requires about 20GB apparently
S.
So what's the libc++.dylib exception exactly?
Anonymous
Ok so when I run the project the message I get is "libc++abi.dylib: terminating with uncaught exception of type std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >"
Anonymous
Something related to string but can't tell what exactly
olli
Where does this exception occur?
Anonymous
It just show up when I run a program called autotester written in C++
Anonymous
https://www.comp.nus.edu.sg/~cs3201/Tools-Lab/AutoTester.html
Anonymous
But I don't think it's a problem associated with the AutoTester program itself
MᏫᎻᎯᎷᎷᎬᎠ
How can we define a variadic template arguments from the same type?
MᏫᎻᎯᎷᎷᎬᎠ
Like int...
MᏫᎻᎯᎷᎷᎬᎠ
Like int...
I got it
BinaryByter
i sense troll
Ludovic 'Archivist'
Any admin available ?
Dima
sir
Ludovic 'Archivist'
I would like to submit a link to a survey here, I want to ask if that is fine
BinaryByter
Prolly
Ludovic 'Archivist'
It is on topic at the very least
BinaryByter
Like... i dont think that we would impede that
BinaryByter
Just do it 🤷‍♂
Dima
Ludovic 'Archivist'
https://docs.google.com/forms/d/e/1FAIpQLSfQjNxUuMnGsCNmE-X4vgXot4Twv6zdx0oGGt0rT9O5H10_lw/viewform
Dima
I see standard library
Dima
Dima
let’s see
Dima
that was the fast one
BinaryByter
yea
BinaryByter
participated
Anonymous
Yeee I did iiiiit
Anonymous
I passed the test
Anonymous
Now I'm c++ pro sir
Silvestr
Hello all) I have stupid question. But I want to understood what is happens. So why this isn't equals nullptr after I delete them? class B { public: std::string name; explicit B() { cout << "Constructor" << '\n'; } void some() { std::thread temp_thread([this]() { std::this_thread::sleep_for(std::chrono::seconds(2)); if (this != nullptr) { cout << this->name << '\n'; } }); temp_thread.detach(); } ~B() { cout << "Destructor" << '\n'; } }; int main() { B* b = new B(); b->name = "Silvestr"; b->some(); delete b; std::this_thread::sleep_for(3s); return 0; }
Anonymous
What @QNeko sais
Ludovic 'Archivist'
Aw ludo
Hewwo wittle boy
Silvestr
but what happens with that address?
Silvestr
Can I reuse it in future?
Silvestr
For example for another new allocations
Anonymous
If the new allocation points to the same address, than you can reuse it. If you use the address after delete, it results in undefined behaviour.
Silvestr
If the new allocation points to the same address, than you can reuse it. If you use the address after delete, it results in undefined behaviour.
oh I understood after delete I free everything that relates for this pointer and just have address that can be used again.
Dima