酒鬼z

我自将心向明月,独卧沙场醉圆缺

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

1.std::make_pair error in VC11

In your case, here are two possible fixes:

C:\Temp>type kitty.cpp
#include <iostream>
#include <ostream>
#include <string>
#include <utility>
using namespace std;

int main() {
    string ht = "hello";
    pair<double, string> ps;

#if defined(FIX1)
    ps = pair<int, string>(1, ht);
#elif defined(FIX2)
    ps = make_pair(1, ht);
#else
    ps = make_pair<int, string>(1, ht);
#endif

    cout << ps.first << " " << ps.second << endl;
}

链接:http://connect.microsoft.com/VisualStudio/feedback/details/691756/std

 

2.Project settings ignored for /SAFESEH

链接:http://connect.microsoft.com/VisualStudio/feedback/details/730025/project-settings-ignored-for-safeseh

 

3.VC 10 (VS 2010) basic_string exports

class PhysicalAccess {
public:
    // methods

private:
    #pragma warning(push)
    #pragma warning(disable: 4251)
    class Pimpl;
    std::tr1::shared_ptr<Pimpl> impl_;
    #pragma warning(pop)
};

链接:http://connect.microsoft.com/VisualStudio/feedback/details/696593/vc-10-vs-2010-basic-string-exports

 

 

posted on 2013-09-06 14:33  酒鬼z  阅读(130)  评论(0)    收藏  举报