First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Does ternary conditional operator bind the order of evaluation?
std::string output( std::string const& r ) { std::string const b( "(" + r + ")" ); std::cout << b << "; "; return b; } template< typename ... ri > nop( ri const& ... r ) {} the order of evaluation of parameters is unspecified, so the following expression: nop( output( output("1") ), output( "2" ) ... 23 Jul 2010 08:03
Any hopes for export ?
Hello As you may know export has been a controversial feature for templates in C++, although also a somewhat promising and a much-awaited one for the more technical programmer, that even to date has hardly received support in compilers. You may hear that much of the controversy started with a paper by Herb Su... 13 Aug 2010 19:03
Is there any standard/guarantees for exception safety in STL operations?
Thomas Richter wrote: Francis Glassborow wrote: For example suppose that you try to insert a block of ten elements into a container and that an exception is thrown during this process. You will still have a stable container in a destructable state. However the Standard does not guarantee that it i... 22 Jul 2010 19:07
U++ Tutoring Plan
Hello all We are pleased to inform you that U++ Tutoring Plan is out. What is it? If you find that U++ is a nice C++ library and development environment but you have problems beginning to use it and you do not feel comfortable with Forum, Tutoring Plan is for you. Conditions Duration: 2 weeks per person. ... 21 Jul 2010 19:07
unordered_map non-existent key
Hi, what happens if I try to access a non-existent key by using operator[] ? e.g. #include <unordered_map> typedef std::unordered_map<int,int> IntHash; typedef IntHash::value_type ValuePair; int main() { IntHash H; H.insert(ValuePair(3,9)); int v = H[7]; cout << v << endl; } gcc-4.4.4 does ... 22 Jul 2010 10:17
ADL / class-namespace question
Hi, can anybody please explain to me why the two statements marked ??? below are rejected by current C++. Will there be any change with C++-0X ? class X { int a; static const int Version=123; public: X(int Ini) : a(Ini) {} static void printD(const X& Arg); }; void X::printD(const X& Arg) { ... 20 Jul 2010 14:39
Static Analysis Test-Sourcecode ?
Hi all! Do you know of any resource(s) that provide sourcecode to test static analysis tools (such as cppcheck, lint, converity, ...) I'm thinking of a simple program consisting of a few source-files that incorporates all the "errors" of books such as [C++ Coding Standards, Sutter, Alexandrescu] or [C++ Got... 20 Jul 2010 10:13
compiling error "conversion from ‘int’ to non-scalar type"
While compiling .cc file i got following error p2p/p2pjxta.cc:41: error: conversion from 'int' to non-scalar type 'std::_List_iterator<Neighbor*>' requested p2p/p2pjxta.cc:42: error: conversion from 'int' to non-scalar type 'std::_List_iterator<Neighbor*>' requested p2p/p2pjxta.cc:43: error: conversion from 'int... 20 Jul 2010 14:39
Is there any standard/guarantees for exception safety in STL operations?
Thomas Richter wrote: ??? How should I know how many resources are available? The lack of any strong guarantee more or less means that proper handling of resource exhaustion is impossible if you insert more than one element at once. IOW, all I can do then is to terminate the program? Now, for *that* I... 1 Aug 2010 19:10
Is there any standard/guarantees for exception safety in STL operations?
On 2010-07-19 15:51, Daniel Kr�gler wrote: � if an exception is thrown by an insert() function while inserting a single element, that function has no effects. ... and what if we are inserting more than one element? what effect(s) we are going to have? The above quoted wording was intenti... 20 Jul 2010 00:31
First  |  Prev |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16