First  |  Prev |  Next  |  Last
Pages: 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Low memory conditions (was: Re: CoW and reference counting in the STL)
Mathias Gaunard wrote: On 29 avr, 20:04, Andre Kaufmann <akfmn...(a)t-online.de> wrote: There should be always a line of code, where the developer hasn't thought about insufficient memory and if the program doesn't crash, at least it will have unpredicted behavior or data loss. All code should be ... 30 Apr 2010 12:49
Behavior of array deletion if an element's dtor throws
On Apr 30, 1:04 pm, Scott Meyers <NeverR...(a)aristeia.com> wrote: I've asked a lot of questions about C++0x recently, so let me emphasize that I'm asking about current C++ (C++03) here. Consider: Widget *pwa = new Widget[100]; ... delete [] pwa; Suppose that the destructor for pwa[50]... 18 May 2010 18:06
ideas for data binding?
I want to serialize some objects and modify it with a GUI. An example: class Library { private: string m_city; vector<Book*> m_books; }; class Book { private: string m_title; int m_count; }; My first approach was something straigtforward, which kind of works, but is a maintenance and code-... 4 May 2010 03:31
What's the proper way of initializing a std::function?
Hi, In C++0x, is lambda the most proper way to initialize a std::function with a valid function that does nothing? class SomeClass { public: SomeClass() : fnc_([]{}) {} private: std::function<void()> fnc_; }; Thanks, Daniel -- [ See http://www.gotw.ca/resources/clcm.htm for info... 23 May 2010 14:38
[ANN] CodeSynthesis XSD 3.3.0 released
Hi, I am pleased to announce the availability of CodeSynthesis XSD 3.3.0. CodeSynthesis XSD is an open-source (GPL2 + proprietary license), cross- platform W3C XML Schema to C++ data binding compiler. Provided with a schema, it generates C++ classes that represent the given vocabulary as well as parsing and se... 28 Apr 2010 15:08
cv qualified return types
Hi, I would like to know what should be the behavior of the compiler for the code shown const int fn(){return 0;} Comeau/Gcc give warning whereas C++ standard does not appear to mention anything specific. However looking at the grammar, it appears to me that such a declaration is syntactically legal. R... 28 Apr 2010 02:51
friend function and storage specifier
class Sample{ static friend void afriend(){} }; int main(){} My query: 1. why is storage specifier not allowed in friend function declaration? 2. Which part of the standard actually mentions about this restriction? Regards, Dabs -- [ See http://www.gotw.ca/resources/clcm.htm for info a... 30 Apr 2010 09:28
Static const size_t member initialization
I'm running into a problem with my C++ compiler. I don't know whether what I am doing is illegal, or it's a compiler bug. My understanding is that you can initialize a static const integer in the class declaration. But my compiler (Sun studio11) doesn't allow it for size_t, which I always assumed was an integer... 28 Apr 2010 02:51
C++0x support in compilers for embedded systems
On Apr 23, 5:32 pm, Scott Meyers <NeverR...(a)aristeia.com> wrote: It's fairly easy to get information about C++0x support in compilers like gcc and MSVC (see e.g., myhttp://www.aristeia.com/C++0x/C++0xFeatureAvailability.htm), but I'm having trouble finding any information about C++0x support for compilers targeting ... 2 May 2010 08:44
move only types in standard containers
I'm trying to use a type that is moveable, but not copyable, in a standard container, in this case an unordered_map. When I try to insert it, I get complaints about a deleted copy constructor. I thought that move only objects were supported in standard containers? Here's my type: struct session_t { sessi... 30 Apr 2010 06:11
First  |  Prev |  Next  |  Last
Pages: 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36