First  |  Prev |  Next  |  Last
Pages: 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
const and ABCs
Hi group Should I ever declare pure virtual functions const in an ABC? Whether or not implementations change their state seems to be none of the interface's business. Also, if I get it wrong, I can't un-const a function in future without perhaps breaking existing callers. On the other hand, if I don't, I ... 1 Oct 2006 17:31
Dummy streams: eating std::endl?
#include <iostream> using namespace std; struct Ignore_Stream { #if 1 template<typename T> Ignore_Stream operator<<(T) const; #else template<typename Char, typename Traits> Ignore_Stream operator<<(basic_ostream<Char,Traits> & (*)(basic_ostream<Char,Traits> &)) const; #endif }; int main(int arg... 5 Oct 2006 09:38
Why is VC++ STL so slow?
I have a program using a map to insert 10,000 item and to do some searching. I compiled the program with VC++ 7.1 (VS2003), g++ (3.4.4) under Cygwin and g++ (3.4.4) under linux. g++ linux version runs 80% fast than VC++ version and g++ Cygwin version (running on windows) runs 50% fast than VC++ version. The VC++ a... 5 Oct 2006 00:11
Expression Templates
Hi All, I've been playing around with expression templates, implementing my own solution as an exercice - on mathematical expressions - and everything works fine, but I can't seem to find the solution to one slight problem I have : expression templates are interesting if they can simplify writing expressions wh... 26 Sep 2006 14:53
Strategies for indexing very large arrays
Hi all. I am implementing this application for bathymetry terrain modeling. The application basically takes a list of (x,y,z) data points, and manipulates these. Present-day sonar technologies deliver data in the order of 5-10 million data points per data set. Emerging sonar technologies could well increase th... 26 Sep 2006 06:54
Help Addison-Wesley with NEW edition of C++ CD from Scott Meyers
With the successful publication of "Effective C++, Third Edition" Scott Meyers and Addison-Wesley Professional are now planning to revise the CD based on that work. To begin, we wish to survey both users and non-users to understand your needs and desires for any new version. User: If you are a current or past use... 22 Sep 2006 14:22
I'd like to use STL algorithms
Hi, The following code applys a conversion function to elements on a vector depending on its index, as follows: int i; vector<sometype> val; for (i=0; i<tokens.size(); ++i) { val[i] = convert(i,v[i]); // or ... val.push_back(convert(i,v[i])); } The best I have achieved (with my limited STL knowle... 25 Sep 2006 23:07
fgets() vs std::getline() performance
Wow ! I just used two different file IO methods and the performance difference was huge. Is there something that I am doing wrong? or is fgets() just that much faster than getline()? Here's the code I used : // SLOOOOOOW // ----------------- std::string line; std::ifstream in(filename.c_str()); ... 23 Oct 2006 01:37
Sanity check: public/private
Carlos Moreno wrote: 1) private is only used as class-member access specifier According to the holly standard, the memory layout for variables separated by different access specifiers is implementation issue. Therefore if you change private to public, the member layout maybe different. 2) private ... 20 Sep 2006 12:01
Type safe signal implementation
Hi! I've been thinking about implementing the event handling mechanism for my (work in progress) wrapper library for (the one and ugly) Windows API. I've abandoned the project some time ago because of lack of free time, but even back then I gave the subject some thought. But all I've managed to achieve was p... 15 Sep 2006 10:25
First  |  Prev |  Next  |  Last
Pages: 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199