3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=US-ASCII">
4 <title>So How are Policies Used Anyway?
</title>
5 <link rel=
"stylesheet" href=
"../../math.css" type=
"text/css">
6 <meta name=
"generator" content=
"DocBook XSL Stylesheets V1.77.1">
7 <link rel=
"home" href=
"../../index.html" title=
"Math Toolkit 2.5.1">
8 <link rel=
"up" href=
"../pol_tutorial.html" title=
"Policy Tutorial">
9 <link rel=
"prev" href=
"policy_tut_defaults.html" title=
"Policies Have Sensible Defaults">
10 <link rel=
"next" href=
"changing_policy_defaults.html" title=
"Changing the Policy Defaults">
12 <body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF">
13 <table cellpadding=
"2" width=
"100%"><tr>
14 <td valign=
"top"><img alt=
"Boost C++ Libraries" width=
"277" height=
"86" src=
"../../../../../../boost.png"></td>
15 <td align=
"center"><a href=
"../../../../../../index.html">Home
</a></td>
16 <td align=
"center"><a href=
"../../../../../../libs/libraries.htm">Libraries
</a></td>
17 <td align=
"center"><a href=
"http://www.boost.org/users/people.html">People
</a></td>
18 <td align=
"center"><a href=
"http://www.boost.org/users/faq.html">FAQ
</a></td>
19 <td align=
"center"><a href=
"../../../../../../more/index.htm">More
</a></td>
22 <div class=
"spirit-nav">
23 <a accesskey=
"p" href=
"policy_tut_defaults.html"><img src=
"../../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../pol_tutorial.html"><img src=
"../../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../../index.html"><img src=
"../../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"changing_policy_defaults.html"><img src=
"../../../../../../doc/src/images/next.png" alt=
"Next"></a>
26 <div class=
"titlepage"><div><div><h3 class=
"title">
27 <a name=
"math_toolkit.pol_tutorial.policy_usage"></a><a class=
"link" href=
"policy_usage.html" title=
"So How are Policies Used Anyway?">So How are Policies
29 </h3></div></div></div>
31 The details follow later, but basically policies can be set by either:
33 <div class=
"itemizedlist"><ul class=
"itemizedlist" style=
"list-style-type: disc; ">
35 Defining some macros that change the default behaviour:
<span class=
"bold"><strong>this
36 is the recommended method for setting installation-wide policies
</strong></span>.
39 By instantiating a distribution object with an explicit policy: this
40 is mainly reserved for ad hoc policy changes.
43 By passing a policy to a special function as an optional final argument:
44 this is mainly reserved for ad hoc policy changes.
47 By using some helper macros to define a set of functions or distributions
48 in the current namespace that use a specific policy:
<span class=
"bold"><strong>this
49 is the recommended method for setting policies on a project- or translation-unit-wide
50 basis
</strong></span>.
54 The following sections introduce these methods in more detail.
57 <table xmlns:
rev=
"http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width=
"100%"><tr>
58 <td align=
"left"></td>
59 <td align=
"right"><div class=
"copyright-footer">Copyright
© 2006-
2010,
2012-
2014 Nikhar Agrawal,
60 Anton Bikineev, Paul A. Bristow, Marco Guazzone, Christopher Kormanyos, Hubert
61 Holin, Bruno Lalande, John Maddock, Jeremy Murphy, Johan R
åde, Gautam Sewani,
62 Benjamin Sobotta, Thijs van den Berg, Daryle Walker and Xiaogang Zhang
<p>
63 Distributed under the Boost Software License, Version
1.0. (See accompanying
64 file LICENSE_1_0.txt or copy at
<a href=
"http://www.boost.org/LICENSE_1_0.txt" target=
"_top">http://www.boost.org/LICENSE_1_0.txt
</a>)
69 <div class=
"spirit-nav">
70 <a accesskey=
"p" href=
"policy_tut_defaults.html"><img src=
"../../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../pol_tutorial.html"><img src=
"../../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../../index.html"><img src=
"../../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"changing_policy_defaults.html"><img src=
"../../../../../../doc/src/images/next.png" alt=
"Next"></a>