Groups
Sign in
Groups
剑孤寒的游戏编程小站
Conversations
About
Send feedback
Help
C++导出类中包含STL成员时的注意事项
8 views
Skip to first unread message
剑孤寒
unread,
Jun 21, 2008, 2:40:49 AM
6/21/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 剑孤寒的游戏编程小站
记录一下在c++中如果导出类中包含stl成员的注意事项,
如果不注意很有可能换个编译器写好的库就不能用了。
1.如果函数中有参数是stl里的某种类型的或希望直接存取stl某种类型的成员变量,该类型必须一并导出
2.尽量不要在导出的函数中的参数使用stl某种类型的指针或引用,可以将其转换为基本类型导出
Reply all
Reply to author
Forward
0 new messages