Profile

Cover photo
Los Angeles C++
66 followers|12,034 views
AboutPostsPhotosVideos

Stream

Los Angeles C++

Shared publicly  - 
 
Here's the GIST with my code snippet for coercing lambdas in to functors/callbacks/hooks.

https://gist.github.com/cbsmith/5002638
1
1
blake tregre's profile photoDan Kegel's profile photoChristopher Smith's profile photo
3 comments
 
+Dan Kegel Sorry for hurting everyone's brain. ;-)

I realized I didn't reshare this post earlier, so I just did so now, and added some notes about the presentation: https://plus.google.com/117025825144195468236/posts/DfUKcZrsj7Z
Add a comment...

Los Angeles C++

Shared publicly  - 
 
 
This site is great. I love what the C++ standards committee is doing these days. I wish more standards committees operated like this.
1
MEGA C++ TUTORIALS's profile photo
Add a comment...

Los Angeles C++

Shared publicly  - 
 
[ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 ]. About ...
1
blake tregre's profile photo
 
make sure to balance with the Frequently Questioned Answers: http://yosefk.com/c++fqa/
Add a comment...

Los Angeles C++

Shared publicly  - 
 
We had a lot of discussion last night about using std::uncaught_exception() to automatically turn off throw. The problem is, if you are inside a try block that will catch the exception you are throwing, it is actually safe to throw --and there isn't a clear way to determine if that is indeed the case.

Looks like std::uncaught_exception() is a lot like exception specifications: not as useful as one might have hoped. I've created a gist which highlights the problem (uses C++11, so you need a fairly recent version of clang to compile it). The problem shows up at line 119.
1
Add a comment...

Los Angeles C++

Shared publicly  - 
 
 
This morning I was asked about C++ unit testing frameworks. Here's my answer. What would yours be?

I've mostly been using Google Test [ http://code.google.com/p/googletest/ ] which integrates nicely with Google Mock [ http://code.google.com/p/googlemock/ ].

The Boost libraries (which you are going to want to start to get familiar with) come with their own test library [ http://www.boost.org/doc/libs/1_50_0/libs/test/doc/html/index.html ] which is a bit more spartan, but has worked well for me.

If you want something more old school, but which hasn't been left for dead, seriously consider CxxTest  [ http://cxxtest.com/ ].

There are definitely more out there, but those are the ones I've played with. I'm also not above just rolling my own unit tests without a framework (literally just building programs that return a 0 or 1 on success or failure) if the project is sufficiently small enough.
1
Add a comment...
In their circles
40 people
Have them in circles
66 people
blake tregre's profile photo
Chuck Shaw's profile photo
Alessandro Valli's profile photo
Spundun Bhatt's profile photo
CSJ Acupuncture & Wellness's profile photo
Nematollah Iri's profile photo
Michael Marshall's profile photo
李维's profile photo
Marco Morais's profile photo

Communities

Los Angeles C++

Shared publicly  - 
 
Come to April's LAC++ to hear +Brandon Harvey introduce Greenhouse -- a new C++ SDK from Oblong Industries -- and learn everything there is to know (and then some) about return type polymorphism in C++ from +Christopher Smith.
1
Add a comment...

Los Angeles C++

Shared publicly  - 
 
Very, very quick notes regarding initializer_lists and c++11's new `for` syntax. 
2
blake tregre's profile photo
 
wheeeeeeeeeeeeeee
Add a comment...

Los Angeles C++

Shared publicly  - 
 
 
In case you weren't paying attention, boost-1.52 is out the door (would have told you sooner but I wanted my download to finish first ;-).
1
Add a comment...

Los Angeles C++

Shared publicly  - 
 
A great little article explaining the importance of all the atomic operator variants in C++11.
1
Add a comment...

Los Angeles C++

Shared publicly  - 
 
Looks like Microsoft is conducting a poll for priorities on their C++ compiler development. Vote early!

.....vote often.
1
Corey Porter's profile photo
 
Whuck? How do you put "refactoring" in to a compiler?
Add a comment...
People
In their circles
40 people
Have them in circles
66 people
blake tregre's profile photo
Chuck Shaw's profile photo
Alessandro Valli's profile photo
Spundun Bhatt's profile photo
CSJ Acupuncture & Wellness's profile photo
Nematollah Iri's profile photo
Michael Marshall's profile photo
李维's profile photo
Marco Morais's profile photo
Communities
Story
Tagline
All things C++
Introduction
A monthly C++ users group hosted by Oblong Industries.