Home

Delphi, DotNet, Java, C++深度探索-哈巴狗的小窝

  • 主页
    • SharpPlus软件
    • Delphi深度探索
    • FFMPEG Vcl Pack For Delphi
  • 音乐列表

Search

分类列表

  • Android (1)
  • Antlr (17)
  • C和CPlusPlus (72)
  • Delphi (87)
  • DotNet (12)
  • Flex (21)
  • IPhone (28)
  • Java (35)
  • Javascript (1)
  • Linux (20)
  • PHP (17)
  • Python (7)
  • Sqlite (15)
  • Symbian (2)
  • Unreal (14)
  • Vxworks (11)
  • Web (6)
  • 共享软件 (14)
  • 多媒体 (20)
  • 开源 (10)
  • 投资理财 (2)
  • 数字货币 (3)
  • 数据库 (2)
  • 杂感 (31)
  • 深度学习 (2)
  • 算法 (4)
  • 风花雪月 (8)

Navigation

  • Feed aggregator
Home » Blogs » hubdog's blog

attempting reference a deleted function

Submitted by hubdog on Wed, 2022-03-09 16:25
  • C和CPlusPlus

Struct A{
xxx
}

向一个vector中添加一个实例的时候经常会报attempting reference a deleted function的编译错误,
原因就是Struct的某些成员不是简单的基本数据类型(int , char ,xxx),而可能是个类,当类不支持简单的copy的时候,就会报这个错误
这时需要我们为struct提供一个copy构造函数

https://gamedev.stackexchange.com/questions/164069/error-saying-attempti...

»
  • hubdog's blog

Recent blog posts

  • delphi程序中如何截获第三方库打印到std err的信息
  • 新的Delphi64bit IDE
  • google gemini 2.0 Flash的编程还是比Claude 3.5 sonnet差很多
  • talib的macd计算有问题
  • freqtrade
  • 使用cmake和vcpkg来编译C++程序
  • SAM2性能很差
  • 关于VNC协议的一些冷知识
  • octoid不能正确处理中文路径名
  • delphi12.2的ai功能做的跟shit一样
more

User login

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
3 + 8 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
  • Request new password

Syndicate

Syndicate content

版权声明:本站所有文章的版权和版权责任属于作者本人,未经许可严禁任何形式的复制和转载,违者将负法律责任。
(C) Copyright 2004-2008, 哈巴狗