Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
johnny531
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
johnny531
15y ago
Try stripping debug symbols. As to compile time, the pimpl pattern is your friend here.
2.
▲
by
johnny531
15y ago
Huh? Templates in C++ are pay-for-what-you-use; only those instantiations required by your code are generated. Note also the ability to extern templates added in C++0x, which allow you to collapse common instantiations to a single object fi
3.
▲
by
johnny531
16y ago
Not sure what you mean with copy ctor bloat, but for your_flavor_of_smart_ptr, that's what the typedef keyword is for. A common idiom I use is to typedef a class's preferred smart-pointer as ptr_t within the class namespace. Passing them ar
4.
▲
by
johnny531
16y ago
Really? C++ is perhaps the slowest moving language in my repertoire in terms of 'popular' approaches to solving common problems. Look how long a c++0x specification has taken. And also, www.boost.org. Don't code c++ without it.
5.
▲
by
johnny531
16y ago
If only c++ had some sort of static type system which could be leveraged to provide compile-time checks... But seriously, this is a large part of the power of c++'s type system. Taking the article's example, if the argument types were of (u