皇上,还记得我吗?我就是1999年那个Linux伊甸园啊-----24小时滚动更新开源资讯,全年无休!

C++ 测试框架 doctest 2.0.0 发布,迁移至 C++11

必威平台 www.gddgtsmy.com C++ 测试框架 doctest 2.0.0 已发布。该版本最大的更新莫过于将代码迁移到了 C++11 了,并表示这是受 reddit 帖子 中的民意调查结果的推动。

部分更新如下

  • moved to C++11 – motivated by the results from the poll in?this reddit thread
  • thread-safety?– asserts and logging utilities can be used in multiple threads spawned from a single test case without race conditions (thread sanitizer?tested) – see?example
  • a complete overhaul of the internals of the framework (moving from printf-style logging to streams and changing internal structures) to allow for easier future development (including a reporter interface – work in progress)
  • given that doctest is?extremely light on compile times?and is meant to be used for tests side-by-side with the production code – added the ability for asserts to be used?outside of a testing context?(as a general purpose assert library) –?example

此外,由于迁移至 C++11,使得其不再支持一些旧的编译器

  • MSVC 2008, 2010, 2012, 2013 (supported: 2015+)
  • GCC 4.4, 4.5, 4.6, 4.7 (supported: 4.8+)
  • Clang 3.3, 3.4 (supported: 3.5+)

详细更新说明和源码下载?https://github.com/onqtam/doctest/releases/tag/2.0.0

转自 https://www.oschina.net/news/99339/doctest-2-0-0-released

分享到:更多 ()