mirror of
https://github.com/boostorg/variant.git
synced 2026-01-27 07:22:14 +00:00
104 lines
4.0 KiB
HTML
104 lines
4.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<meta name="keywords" content="Variant, design pattern, generic programming, C++">
|
|
<link rel="stylesheet" type="text/css" href="styles.css">
|
|
|
|
<title>Boost::variant</title>
|
|
</head>
|
|
|
|
<body bgcolor="#FFFFFF" link="#0000FF" vlink="#800080">
|
|
<table summary="header" border="0" cellpadding="7" cellspacing="0" width="100%">
|
|
<tr>
|
|
<td valign="top" width="300">
|
|
<h3>
|
|
<A HREF="../../../index.htm">
|
|
<img src="../../../c++boost.gif" alt="C++ Boost"
|
|
width="277" height="86" BORDER=0> </A>
|
|
</h3>
|
|
</td>
|
|
|
|
<td valign="top">
|
|
<h1 align="center"><a href="index.html">boost::variant</A></h1>
|
|
<h2 align="center">Miscellaneous</h2>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr>
|
|
<UL>
|
|
<LI><a href="#HeaderFiles">Header files</a></LI>
|
|
<LI><a href="#Compatibility">Compatibility</a></LI>
|
|
<LI><a href="#Troubleshooting">Troubleshooting</a></lI>
|
|
</UL>
|
|
<hr>
|
|
<h2><a name="HeaderFiles">Header files</a></h2>
|
|
<ul>
|
|
<li><a href="../../../boost/variant.hpp">boost/variant.hpp</a> - Defines
|
|
<code><a href="reference.html#Synopsis">boost::variant</a></code>
|
|
<li><a href="../../../boost/incomplete.hpp">boost/incomplete.hpp</a>
|
|
- Defines class template <code><a href="reference.html#Incomplete">boost::incomplete</a></code>.
|
|
<li><a href="../../../boost/variant/apply_visitor.hpp">boost/apply_visitor.hpp</a> -
|
|
Defines the function templates <code>
|
|
<a href="reference.html#Visitation">boost::apply_visitor</a></code>
|
|
<li><a href="../../../boost/variant/static_visitor.hpp">boost/static_visitor.hpp</a>
|
|
- Defines class template <code><a href="reference.html#StaticVisitor">
|
|
boost::static_visitor</a></code>.
|
|
<li><a href="../../../boost/variant/get.hpp">boost/get.hpp</a>
|
|
- Defines function templates<code>
|
|
<a href="reference.html#ValueExtraction">boost::get</a></code>.</li>
|
|
<li><a href="../../../boost/empty.hpp">boost/empty.hpp</a>
|
|
- Defines <code><a href="reference.html#empty">boost::empty</a></code>.</li>
|
|
</ul>
|
|
<hr>
|
|
<h2><a name="Compatibility">Compatibility</a></h2>
|
|
<p>To date the code and test harness have been compiled and tested successfully
|
|
using Microsoft Visual C++ 7.0 and GNU C++ 2.95/3.1.</p>
|
|
Instantiation with a <code>boost::mpl</code> sequence is not supported under MSVC.<br>
|
|
<br>
|
|
<hr>
|
|
<h2><a name="Troubleshooting">Troubleshooting</a></h2>
|
|
<ul>
|
|
<li><u>Compiler</u>: GNU C++. Error message:<br>
|
|
<table>
|
|
<tr>
|
|
<td width = "50"></td>
|
|
<td>
|
|
<code>
|
|
<br>
|
|
variant.hpp: template instantiation depth exceeds maximum of 17<br>
|
|
variant.hpp: (use -ftemplate-depth-NN to increase the maximum)
|
|
<br>
|
|
<br>
|
|
</code></td></tr></table>
|
|
<u>Solution</u>: Passing <code>-ftemplate-depth-50</code> to the compiler.
|
|
This will increase the maximum depth to 50.<br>
|
|
<br><br>
|
|
<li><u>Compiler</u>: MSVC7. Error message:<br>
|
|
<table>
|
|
<tr>
|
|
<td width = "50"></td>
|
|
<td>
|
|
<code>
|
|
<br>
|
|
boost\mpl\clear.hpp(36) : fatal error C1076: compiler limit : internal heap
|
|
limit reached;<br>
|
|
use /Zm to specify a higher limit
|
|
<br>
|
|
<br>
|
|
</code></td></tr></table>
|
|
<u>Solution</u>: Passing <code>/Zm200</code> to the compiler. This will increase
|
|
the heap by a factor of 200%.</ul>
|
|
<hr>
|
|
|
|
<p>Revised 10 February 2003</p>
|
|
|
|
<p><i>© Copyright Eric Friedman and Itay Maman 2002-2003. All rights
|
|
reserved.</i></p>
|
|
<p>Permission to use, copy, modify, distribute and sell this software
|
|
and its documentation for any purpose is hereby granted without fee,
|
|
provided that the above copyright notice appear in all copies and that
|
|
both that copyright notice and this permission notice appear in
|
|
supporting documentation. Eric Friedman and Itay Maman make no
|
|
representations about the suitability of this software for any purpose.
|
|
It is provided "as is" without express or implied warranty.</p> |