• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/docs/programmer_reference/
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4  <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6    <title>Dbstl known issues</title>
7    <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9    <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" />
10    <link rel="up" href="stl.html" title="Chapter��7.��Standard Template Library API" />
11    <link rel="prev" href="stl_misc.html" title="Dbstl miscellaneous notes" />
12    <link rel="next" href="arch.html" title="Chapter��8.�� Berkeley DB Architecture" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">Dbstl known issues</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="stl_misc.html">Prev</a>��</td>
22          <th width="60%" align="center">Chapter��7.��Standard Template Library API</th>
23          <td width="20%" align="right">��<a accesskey="n" href="arch.html">Next</a></td>
24        </tr>
25      </table>
26      <hr />
27    </div>
28    <div class="sect1" lang="en" xml:lang="en">
29      <div class="titlepage">
30        <div>
31          <div>
32            <h2 class="title" style="clear: both"><a id="stl_known_issues"></a>Dbstl known issues</h2>
33          </div>
34        </div>
35      </div>
36      <p>
37    Three algorithm functions of gcc's  C++ STL test suite do not work with dbstl.  They are
38    <code class="function">find_end()</code>, <code class="function">inplace_merge()</code> and
39    <code class="function">stable_sort()</code>.
40</p>
41      <p>
42    The reason for the incompatibility of <code class="function">find_end()</code> is that it assumes the
43    data an iterator refers to is located at a shared place (owned by its container). This
44    assumption is not correct in that it is part of the C++ STL standards specification.  However,
45    this assumption can not be true for dbstl because each dbstl container iterator caches its
46    referenced value.
47</p>
48      <p>
49    Consequently, please do not use <code class="function">find_end()</code> for dbstl container iterators if
50    you are using gcc's STL library.
51</p>
52      <p>
53    The reason for the incompatibility with <code class="function">inplace_merge()</code> and
54    <code class="function">stable_sort()</code> is that their implementation in gcc requires the
55    <span class="bold"><strong>value_type</strong></span> for a container to be default constructible. This
56    requirement is not a part of the the C++ STL standard specification. Dbstl's value type
57    wrappers (such as <code class="classname">ElementHolder</code>) do not support it.
58</p>
59      <p>
60    These issues do not exist for any function available with the Microsoft Visual C++ STL library.
61</p>
62    </div>
63    <div class="navfooter">
64      <hr />
65      <table width="100%" summary="Navigation footer">
66        <tr>
67          <td width="40%" align="left"><a accesskey="p" href="stl_misc.html">Prev</a>��</td>
68          <td width="20%" align="center">
69            <a accesskey="u" href="stl.html">Up</a>
70          </td>
71          <td width="40%" align="right">��<a accesskey="n" href="arch.html">Next</a></td>
72        </tr>
73        <tr>
74          <td width="40%" align="left" valign="top">Dbstl miscellaneous notes��</td>
75          <td width="20%" align="center">
76            <a accesskey="h" href="index.html">Home</a>
77          </td>
78          <td width="40%" align="right" valign="top">��Chapter��8.��
79		Berkeley DB Architecture
80        </td>
81        </tr>
82      </table>
83    </div>
84  </body>
85</html>
86