Last change
on this file since 20 was
12,
checked in by landauf, 17 years ago
|
added boost
|
-
Property svn:executable set to
*
|
File size:
677 bytes
|
Line | |
---|
1 | // (C) Copyright Gennadiy Rozental 2001-2005. |
---|
2 | // Distributed under the Boost Software License, Version 1.0. |
---|
3 | // (See accompanying file LICENSE_1_0.txt or copy at |
---|
4 | // http://www.boost.org/LICENSE_1_0.txt) |
---|
5 | |
---|
6 | // See http://www.boost.org/libs/test for the library home page. |
---|
7 | |
---|
8 | // Boost.Runtime.Param |
---|
9 | #include <boost/test/utils/runtime/env/variable.hpp> |
---|
10 | #include <boost/test/utils/basic_cstring/io.hpp> |
---|
11 | |
---|
12 | namespace rt = boost::runtime; |
---|
13 | namespace env = boost::runtime::env; |
---|
14 | |
---|
15 | // STL |
---|
16 | #include <iostream> |
---|
17 | |
---|
18 | int main() { |
---|
19 | env::variable<int> TEMP( "abc", (env::global_id = "temp_dir_location", env::default_value = 5) ); |
---|
20 | |
---|
21 | std::cout << TEMP << std::endl; |
---|
22 | |
---|
23 | return 0; |
---|
24 | } |
---|
25 | |
---|
26 | // EOF |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.