找回密码
 用户注册

QQ登录

只需一步,快速开始

查看: 2876|回复: 1

ACE_ARRAY的实例化问题

[复制链接]
发表于 2007-12-22 21:55:27 | 显示全部楼层 |阅读模式
我要用ACE_ARRAY<T>
想用
struct node
{
int a;
int b;
};
做array的节点
怎么实例化啊?
ACE_ARRAY<node> arr (10);不行
实例化一定要是用类吗?
 楼主| 发表于 2007-12-22 22:15:11 | 显示全部楼层
Requirements for contained type
*       -# Default constructor
*       -# Copy constructor
*       -# operator=
*       -# operator!=
您需要登录后才可以回帖 登录 | 用户注册

本版积分规则

Archiver|手机版|小黑屋|ACE Developer ( 京ICP备06055248号 )

GMT+8, 2024-5-20 05:49 , Processed in 0.831989 second(s), 6 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表