C++: Change constructor argument of Result::samples
C++: Use std::ifstream::fail() instead of rdstate()
C++: Change type of delim

 * Change from std::string to char
C++: Move clamp() to outside of main()
C++: Change name of lambda() and move to outside of main()
C++11: Add explicit clear value(0) to bytes[]
C++: More AAA style
C++: Use appropriate result type instead of many references
C++: Improve compatibility with GCC 4.6
Merge pull request #25 from t-mat/cpp-cpp11-flavor

C++: Shorter main() and less arguments for some functions