<- Previous Log Select Different Log Next Log ->  
Searching from 2021-12-30 00:00:00 to 2021-12-30 23:59:59.999999.
Query completed in 7.68 seconds
[2021-12-30 09:52:53] <Z-Man> Lucifer_arma: We have chained constructors? Since when? I'm still at C++17 at work.
[2021-12-30 09:54:12] <Z-Man> The key to loving 'auto' is to use an IDE with strong 'show me the type' and 'go to definition' capabilities. qtcreator is a good one.
[2021-12-30 09:54:56] <Z-Man> Or, failing that, only use if where it makes the code shorter and more maintainable (so, for lamdas obviously, or intermediate expressions of unknown type in template functions)
[2021-12-30 09:56:54] <Z-Man> or where the precise type does not matter; using it for the result of integer type calculations can save you a lot of pain when the types ever change.
[2021-12-30 09:57:20] <Z-Man> 'does not matter' meaning 'does not matter for understanding the code'.
[2021-12-30 10:00:58] <Z-Man> SINCE C++ 11???? Darn.
[2021-12-30 17:41:42] <Lucifer_arma> where I've used it so far is also where I stumbled across it: std iterators.  I can see the flexibility auto provides, but I can also see it being abused
[2021-12-30 17:42:12] <Lucifer_arma> still, as long as the interface you're using with auto is the same regardless of type, and that can be easily inferred by context, I can see auto being quite helpful
[2021-12-30 17:42:56] <Lucifer_arma> one way it can be helpful is if, say, std::map doesn't exist on a platform I want to support.  For that platform, I could copy in std::map from stdc++, or I could write my own.
[2021-12-30 17:43:04] <Lucifer_arma> either way, my iterator will still work
[2021-12-30 17:44:14] <Lucifer_arma> since my own context here is a game engine, and we *do* want to support game consoles at some point (you know, when we can afford to by developer licenses and stuff), that could come up.
[2021-12-30 17:44:34] <Lucifer_arma> I honestly don't know which c++ standard is reliably available on consoles, or android or ios for that matter
[2021-12-30 17:45:05] <Lucifer_arma> that's why I'm sticking to c++11 for now.  That and I don't want to get too overwhelmed with language changes, heh.
[2021-12-30 21:25:08] -!- Z-Man changed nick to Guest9684
[2021-12-30 21:25:10] --> Z-Man has joined the channel
[2021-12-30 21:29:13] <-- Z-Man has quit (Ping timeout: 256 seconds)
[2021-12-30 21:30:25] --> Z-Man has joined the channel
[2021-12-30 21:32:42] <-- Guest9684 has quit (Ping timeout: 480 seconds)

View entire month
DISCLAIMER: These logs of public chat may contain some content which may not be appropriate for all audiences. Use at your own risk.
Logs from 2006-2009 pulled from wrtlprnft
Format changes at: 2015-08-25, 2017-02-20, and 2020-03-23. Times (2015 and later) should be Eastern.

 © NelgTron 2014-2022. Made for . [About this site] [Credits]