First  |  Prev |  Next  |  Last
Pages: 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
Query: want a function that is called at initialisation time
Kirill wrote: On Dec 16, 3:17 pm, Bart van Ingen Schenau <b...(a)ingen.ddns.info> wrote: The problem is that Singleton<T>::__i will not be instantiated (let alone initialised) unless the code somehow refers to a particular instance of it. So, why does the RAII idiom work anyway? If the construc... 19 Dec 2007 15:57
overloading/defining operator<
In order to use a class with std::map, a comparison function must be defined in order to sort class instances. Either a functor can be used in the map CTOR, or the operator< should be defined for the class. If I define the operator< in the class: - should this return whether this < other or other < t... 20 Dec 2007 12:32
Books on BOOST
Sorry......The title of the book is wrong in my previous mail. Its "Beyond the C++ Standard Library: An Introduction to Boost" -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] ... 19 Dec 2007 15:23
How to to convert object to XML string and back again
On Dec 18, 10:16 am, ap...(a)student.open.ac.uk wrote: As a thought experiment I am considering how I would recode a java program I have been working on in C++. This is an interesting experiment for me because the program is in an environment where a number of enterprise technologies are being used so it is ... 28 Dec 2007 13:29
template argument deduction oddity?
This is not a big complicated generic thing, but the compiler is having some trouble. template <class D> struct GenericThing { struct T { }; }; struct Stream { }; template <class D> Stream& operator<< ( Stream& out, typename GenericThing<D>::T const & thing) ... 19 Dec 2007 20:23
problem of using stream to serialize vector<vector<T> >
magiceye <magiceye(a)163.com> writes: struct A { string sa; float na; }; struct B { vector<A> vb; }; struct C { string sc; B vc; }; friend std::istream& operator>>(std::istream& is, B& m) { std::copy(std::istream_iterator<B>(is), ... 22 Dec 2007 15:54
dynamically loading classes at runtime - will it ever be official?
On 18 d�c, 11:18, ap...(a)student.open.ac.uk wrote: It seems to me that dynamic class loading is of general use and can be implemented in way that makes the interface portable, even though the internal implementation will not be. So I wonder what the chances are of it ever becoming part of std C++? This se... 19 Dec 2007 15:23
Good Books on BOOST
Hi, Can some suggest good book for getting acquainted with the BOOST library for C++? Currently I am reading "Beyond STL: An Introduction to BOOST". But it does not covers all the libraries in BOOST. Thanks in advance. Warm Regards. -- [ See http://www.gotw.ca/resources/clcm.htm for info about ... 20 Dec 2007 12:32
ambiguous method calling
Hi, I have troubles using templates with multiple inheritance, what generated an error (in both Visual Studio 2005 and g++ 3.3.0) refering to an ambiguous call. Ambiguous? the type is given in the calling function, but the compiler needs the scope for the correct base where the desired method reli... 22 Dec 2007 15:54
static const non-integral data members initialized within a class
On 2007-12-08 06:34:16 -0500, Greg Herlihy <greghe(a)mac.com> said: The goal is that declaring an integral constant like "MM::value" should be no less efficient than: #define value 3 yet have the advantage of type safety - which the macro is not able to provide. The goal is respect... 10 Dec 2007 00:01
First  |  Prev |  Next  |  Last
Pages: 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92