msvc12

How to modify the PATH variable in Qt Creator's project file (.pro)

I use Qt Creator 3.4.2 for Windows and MSVC2013 compiler. When I build the project I get an error: LNK1158: cannot run 'rc.exe' I managed to fix it by adding "C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Bin" to the PATH variable under Projects -> Build Environment But I need to modify the...

Why does is_copy_constructible return true for unique_ptr in MSVC12

I would have expected this static assertion to fire: #include <type_traits> #include <memory> int main() { static_assert(std::is_copy_constructible<std::unique_ptr<int>>::value, "UPtr has copy constructor?"); } But it does not. Compiled using MSVC12: Microsoft (R) C/C++ Optimizing Compiler Version...

“Function has no address” despite disabled optimization (/Od)

During debug in MSVC 2012, I am attempting to call some functions from the Watch window in order to dump data to files. However, I keep getting this error: Function Matrix::Save has no address, possibly due to compiler optimizations. The class Matrix is located in my own external library. A quick...

Can&#39;t assign string literal to boxed std::string vector

This is a simplified version of my type system: #include <string> #include <vector> template<typename T> class Box { public: Box(const T& value) : _value(value) {}; private: T _value; /* ... */ }; typedef Box<int> Int; typedef Box<double> Double; typedef Box<std::string> String; int main(int argc,...

Compiling gcc code in Visual Studio causes error C3646: &#39;__attribute__&#39;: unknown override specifier

I am getting the following error: error C3646: '__attribute__': unknown override specifier Code: LEMUR_PREALIGN char _stack[ sizeof(_Type) * _Count ] LEMUR_POSTALIGN; Complete error: 1>c:\program files\indri\indri 5.9\include\indri\greedy_vector(52): error C3646: '__attribute__': unknown override...