blob: 6b015e9b4e9468b5ad5f396d3ab016c1df935587 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Nel] maybe bug</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:jaleco%40svr1.gameone.com.tw">
<LINK REL="Previous" HREF="000237.html">
<LINK REL="Next" HREF="000246.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Nel] maybe bug</H1>
<B>jaleco</B>
<A HREF="mailto:jaleco%40svr1.gameone.com.tw"
TITLE="[Nel] maybe bug">jaleco@svr1.gameone.com.tw</A><BR>
<I>Wed, 21 Feb 2001 18:37:46 +0800</I>
<P><UL>
<LI> Previous message: <A HREF="000237.html">[Nel] Something I don't understand about the license agreement.</A></li>
<LI> Next message: <A HREF="000246.html">[Nel] Link error</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#242">[ date ]</a>
<a href="thread.html#242">[ thread ]</a>
<a href="subject.html#242">[ subject ]</a>
<a href="author.html#242">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>This is a multi-part message in MIME format.
------=_NextPart_000_0021_01C09C35.623341E0
Content-Type: text/plain;
charset="big5"
Content-Transfer-Encoding: quoted-printable
first I am a newbies for c++,so maybe I am wrong.
file moves.cpp=20
auto_ptr<CConfigFile> cf2( new CConfigFile() );
auto_ptr<CConfigFile> cf( new CConfigFile() );
seem to wrong, becuase auto_ptr will delete content when leave local =
stack.
but ccconfigfile store it to vector container , this will cause bad =
thing .
did it ?
------=_NextPart_000_0021_01C09C35.623341E0
Content-Type: text/html;
charset="big5"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>first I am a newbies for c++,so maybe I am =
wrong.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>file moves.cpp </FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; auto_ptr&lt;CConfigFile&gt; =
cf2( new=20
CConfigFile() );</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; auto_ptr&lt;CConfigFile&gt; cf( =
new=20
CConfigFile() );<BR>seem to wrong, becuase auto_ptr will delete content =
when=20
leave local stack.</FONT></DIV>
<DIV><FONT size=3D2>but ccconfigfile store it to vector container , this =
will=20
cause bad thing .</FONT></DIV>
<DIV><FONT size=3D2>did it ?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV></BODY></HTML>
------=_NextPart_000_0021_01C09C35.623341E0--
</pre>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="000237.html">[Nel] Something I don't understand about the license agreement.</A></li>
<LI> Next message: <A HREF="000246.html">[Nel] Link error</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#242">[ date ]</a>
<a href="thread.html#242">[ thread ]</a>
<a href="subject.html#242">[ subject ]</a>
<a href="author.html#242">[ author ]</a>
</LI>
</UL>
</body></html>
|