Boost logo

Boost Users :

Subject: [Boost-users] [UTF] documentation of runtime configuration programmatically
From: gast128 (gast128_at_[hidden])
Date: 2011-09-17 19:10:58


Hello all,

the documentation of Boost.Test contains the following sentence

"The UTF provides two ways to set a parameter at runtime: by specifying a
command line argument and by setting an environment variable. The command line
argument always overrides the corresponding environment variable."

However it does not explain how. For example if I add this line to my code it
crashes:

boost::runtime::env::get<bool>("BOOST_TEST_AUTO_START_DBG");

Anyone?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net