V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
noli
V2EX  ›  iDev

有谁在 XCode 成功编译过 std::atomic 相关的代码吗?

  •  
  •   noli · Feb 11, 2015 · 2891 views
    This topic created in 4092 days ago, the information mentioned may be changed or developed.
    I got this on XCode 6:

    No matching member function for call to 'compare_exchange_weak'

    updateSucc = this->producerIndex_.compare_exchange_weak(
    original, updated,
    std::memory_order_release,
    std::memory_order_relaxed);
    noli
        1
    noli  
    OP
       Feb 12, 2015
    找到原因了……低级失误…… original 和 updated 是 const 的,然后就……呵呵了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4182 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 05:27 · PVG 13:27 · LAX 22:27 · JFK 01:27
    ♥ Do have faith in what you're doing.