|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r70052 - trunk/tools/quickbook/src
From: dnljms_at_[hidden]
Date: 2011-03-17 05:08:07
Author: danieljames
Date: 2011-03-17 05:08:05 EDT (Thu, 17 Mar 2011)
New Revision: 70052
URL: http://svn.boost.org/trac/boost/changeset/70052
Log:
Quickbook: include boost version in version info.
Text files modified:
trunk/tools/quickbook/src/quickbook.cpp | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
Modified: trunk/tools/quickbook/src/quickbook.cpp
==============================================================================
--- trunk/tools/quickbook/src/quickbook.cpp (original)
+++ trunk/tools/quickbook/src/quickbook.cpp 2011-03-17 05:08:05 EDT (Thu, 17 Mar 2011)
@@ -19,6 +19,7 @@
#include <boost/filesystem/v3/fstream.hpp>
#include <boost/range/algorithm.hpp>
#include <boost/ref.hpp>
+#include <boost/version.hpp>
#include <stdexcept>
#include <vector>
@@ -252,7 +253,15 @@
if (vm.count("version"))
{
- quickbook::detail::out() << QUICKBOOK_VERSION << std::endl;
+ std::string boost_version = BOOST_LIB_VERSION;
+ boost::replace(boost_version, '_', '.');
+
+ quickbook::detail::out()
+ << QUICKBOOK_VERSION
+ << " (Boost "
+ << boost_version
+ << ")"
+ << std::endl;
return 0;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk