visual-c++-2010 Questions

1

Solved

I have the following: typedef std::function<void(const EventArgs&)> event_type; class Event : boost::noncopyable { private: typedef std::vector<event_type> EventVector; type...
Desouza asked 13/12, 2010 at 15:30

1

When I used _swprintf(), it said it might be unsafe and I should use _swprintf_s instead. But when I used _swprintf_s(), it said error C3861: '_swprintf_s': identifier not found Which header...
Compte asked 1/12, 2010 at 4:55

2

Solved

I am using Visual C++ 2010. Does it support the C++11 threads library, such that I could compile the code in this question? If not, what library can I use that would support this?
Waldron asked 25/10, 2010 at 7:4

4

Solved

I have the following code #include <algorithm> #include <iostream> #include <vector> #include <functional> int main() { typedef std::vector<int> Vector; int sum=...
Emad asked 9/7, 2010 at 8:44

1

Solved

I have a problem regarding 'static const' member initialization. In a templated class I define a const member and initialize it outside the class. When I include the .h file where this class is imp...
Troxell asked 22/7, 2010 at 8:31

2

As I found out that I can use only numerical values in C++'s switch statements, I thought that there then must be some deeper difference between it and a bunch of if-else's. Therefore I asked myse...

1

Solved

Consider the following class: class Foo { enum Flags {Bar, Baz, Bax}; template<Flags, class = void> struct Internal; template<class unused> struct Internal<Bar, unused> {/* ...
Marcie asked 18/7, 2010 at 17:53

2

Solved

Is there any overhead associated with using lambda expressions in C++0x (under VS2010)? I know that using function objects incurs overhead, but I'm referring to expressions that are passed to STL a...
Endear asked 10/7, 2010 at 10:38

3

Solved

Possible Duplicate: What is “missing” in the Visual Studio Express Editions? Specifically for 2010, specifically for C++... what's missing Vs Professional/Premium (annoyin...

1

Solved

I'm trying to compile VC6 project with VC10... I obtain an error C2678 with set_intersection: I wrote some example to understand. Can anybody explain how to compile this snippets ? #include <ve...
Phillada asked 30/6, 2010 at 14:56

1

Solved

i wrote this program in VC++ 2010: class class1 { public: class1 (initializer_list<int> a){}; int foo; float Bar; }; void main() { class1 c = {2,3}; getchar(); } but i get this errors...
Yvetteyvon asked 7/5, 2010 at 22:21

2

Solved

I'm trying to use C++0x, and in particular lambda expression and decltype to simplify some of my code, using the MSVC10 RC compiler. I've run into the following very odd problem: template <typ...
Krol asked 25/2, 2010 at 16:13

© 2022 - 2024 — McMap. All rights reserved.