summaryrefslogtreecommitdiff
path: root/STL/ACE_Changes
blob: 902fb94c94ca239c86be933c116c4eecba04c80c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
This version of STL was obtained from
http://www.rahul.net/terris/.  This is a modified version of the
implementation that comes with VC++4.0.  Please see readme2.stl for
details. 

The following modification have been made for compilation with VC++4.x

________________________________________

vector.h (line 85)
________________________________________


    /*
     *  This is cause the VC++ compiler sucks
     *  and does not recognize nested classes properly
     *       
     */
#if !defined (VC_PLUS_PLUS_NESTED_CLASS_PROBLEM)
    vector(size_type n, const T& value = T()) {
	start = static_allocator.allocate(n);
	uninitialized_fill_n(start, n, value);
	finish = start + n;
	end_of_storage = finish;
    }
#endif /* VC_PLUS_PLUS_NESTED_CLASS_PROBLEM */


________________________________________

bstring.h (line 1102)
________________________________________


    /* 
     * This should be correctly scoped
     *
     * if (cap == ::reserve)
     */

    if (cap == std::reserve)
    {
       len = 0;
       res = size;
       ptr = new charT [res];
    }
    /* 
     * This should be correctly scoped
     *
     *     else if ((cap == ::default_size) && (size != NPOS))
     */

    else if ((cap == std::default_size) && (size != NPOS))