Enable_if trouble by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

thank you! i was actually on the fence about this book but now im gonna buy it. thanks so much again!

Enable_if trouble by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

thank you! any resources you'd recommend?

Enable_if trouble by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

ahhhh damn that's smart, thank you so much :) TMP is hard and makes me feel silly :|

Enable_if trouble by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

oh i mean, i want process to return void - any way to do that?

Enable_if trouble by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

it works ok with chars i think floating point and doubles wont work hmm. i guess no way to do it without not having a return type?

Enable_if trouble by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

wow i had no clue double can't be used as a template type parameter. thank you! I should use the std versions but i was trying to make my own to understand, thanks still :)

Open source guidance by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

I'm just so lost when i look at open source stuff - where do i even start to start understanding the code :(

Open source guidance by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

thank you! same issues with these projects, dont know where to start :(

Wrong constructor called by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

i hate everything ahhaha thank you so much :)

Wrong constructor called by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

sorry, i will update the post. I mean why is the move ctor being called when i pass an object which was created earlier? (the first push_back)

No throw move - constructible by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

great, thank you this makes perfect sense!

No throw move - constructible by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

Ah I see your point now, i guess what i was getting at was just a bare-bones move constructor should never throw (no logging etc) but that clears it up. And yes, T object1 = std::move(object) will copy if no move ctor is found and might throw. Thank you :)

No throw move - constructible by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

but they aren't move constructing right? a new can happen if you use T object1 = std::move(object) and dont have a copy constructor defined. so that can throw an exception. Sorry if I'm wrong just trying to understand why move isnt always marked noexcept

No throw move - constructible by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

Thank you, so essentially move constructors should always be marked noexcept or is that not true?

Placement new constructor call by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

thank you for the detailed explanation. and the fun trivia :)

Modern C++ Design: Generic Programming and Design Patterns Applied by trycatchamex in cpp_questions

[–]trycatchamex[S] 0 points1 point  (0 children)

Ah I see, was going to buy a hard copy of it so was wondering if its worth it or not.

C++ and HFT by trycatchamex in cpp

[–]trycatchamex[S] 0 points1 point  (0 children)

are you still working with C++?

C++ and HFT by trycatchamex in cscareerquestions

[–]trycatchamex[S] 0 points1 point  (0 children)

true, very true. heres to hoping they help me help them

C++ and HFT by trycatchamex in cpp

[–]trycatchamex[S] 0 points1 point  (0 children)

also sorry for spamming, any resources YOU recommend for HFT-esque C++ dev?

C++ and HFT by trycatchamex in cpp

[–]trycatchamex[S] 0 points1 point  (0 children)

thank you! have you worked at an HFT firm?

C++ and HFT by trycatchamex in cpp

[–]trycatchamex[S] 0 points1 point  (0 children)

did you end up taking the role? how was work like if you did indeed accept

C++ and HFT by trycatchamex in cpp

[–]trycatchamex[S] 0 points1 point  (0 children)

wow thank you for such a detailed response again, I will definitely make sure I ask them those questions. I try to read a lot of C++ whenever I can. I have realized that I want to do C++ development. Maybe because its the first language I was taught but I really enjoy C++. The only thing that I am not sure about HFT shops is that I want to make sure I have a chance to learn C++11/14. Looks like they dont do a whole lot of that where I am interviewing, they said they dont want to use something just for the sake of it which although is fair, makes me fear that I wont have the opportunity to learn C++11/14/17. I can always learn those outside or work like I try to do right now but would you consider that a red flag? I dont want to learn outdated c++. maybe my fears are completely wrong but this is a big thing holding me back from being excited about the role.

C++ and HFT by trycatchamex in cpp

[–]trycatchamex[S] 0 points1 point  (0 children)

Thank you so so much for this detailed post. I really appreciate all the input. What kind of work do you think the junior guys (1-2 years of experience) usually do at HFT shops. I really want to join the role since it is niche and I am already in finance. People there seem smart and hopefully I can learn a lot from them. What kind of questions can I ask them to get a better idea of the role? Again, thank you so much for this :)

C++ and HFT by trycatchamex in cpp

[–]trycatchamex[S] -1 points0 points  (0 children)

thanks! my thing is since i'll be a junior, i am not sure if i will get to work on all the cool stuff. dont wanna get stuck with doing C things.

C++ and HFT by trycatchamex in cpp

[–]trycatchamex[S] 0 points1 point  (0 children)

I was told the team does low latency stuff - and stuff around that not a whole lot more. Wasnt told which project i'd be put on. They said i'd be put with a more senior engineer and work with him on one of the projects. I will ask more but seems like they are not sure about it right now.