First  |  Prev |  Next  |  Last
Pages: 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
please get me learn c++ web . 3Q 3Q~~
as tittle!!~ 3q a lot { Translation: the author evidently is requesting web resources for learning C++. Although this is a FAQ, the FAQ hasn't been updated for a while. -mod } -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: ... 19 Jun 2008 21:55
template specialization for multiple classes
Is it possible to declare a template specialization in c++ that fits multiple classes? For example, I have a class that needs a specialization for 4 different "types" of type. I need one specialization for unsigned integer types (long, short, int), one for signed integer types, one for signed floating point typ... 21 Jun 2008 07:39
Defect Report: integral_constat::value should be constexpr
Since by definition integral_constant::value must always be a compile-time constant, it should be constexpr so that the compiler knows this fact. Proposed Resolution: In 20.4.3 replace static const T value = v; with static constexpr T value = v; Joe Gottman -- [ Se... 20 Jun 2008 15:20
regex on istream
Hi, I'd like to do regex matching on istreams. Browsing through the boost.regex docs tells me that the regex_(search|match|replace) family of functions at least needs a BidirectionalIterator concept to work on. So istream_iterator seems to be a no go. All examples I could find in the boost docs seem to read ... 23 Jun 2008 21:59
another question about exception safety
on Tue Mar 25 2008, acehreli-AT-gmail.com wrote: On Mar 23, 10:23 pm, Mathias Gaunard <loufo...(a)gmail.com> wrote: On Mar 24, 2:13 am, Mortiz <ydruga...(a)gmail.com> wrote: Suppose some class has only two members: std::map<std::string, std::string> member1 and std::string member2. Also it has cto... 19 Jun 2008 02:25
MPL Placeholder Basics
On Feb 6, 6:12 am, Mitch <besse...(a)gmail.com> wrote: Reading about MPL placeholders in the book C++ Template Metaprogramming in Chapter 3 (3.1.5 p47) and can't understand placeholders. The author talks about them in some detail, but doesn't answer basic questions. ex: typename mpl::transform<D1, ... 19 Jun 2008 02:25
cast int to char
how do i do this correctly without warnings? char buf[10]; buf[0] = (char)254; if I say static_cast<char>(254) I get warnings warning C4305: '=' : truncation from 'int' to 'char' warning C4309: '=' : truncation of constant value Thanks! Todd. -- [ See http://www.gotw.ca/resources/clcm.htm fo... 19 Jun 2008 21:55
If the initialization list fail, is the destructor called?
Hi there, the question is pretty simple. If I implement a constructor as follows, Object::Object(Type one, Type2 two...) : fOne(one), ftwo(new(std::nothrow) two), etc.. { /* empty body */ } Object::~Object() { /* some statements */ } is the object created if one of the initialization in the ... 20 Jun 2008 15:20
Questions about default constructed STL container elements
The Working Draft of the C++ Standard (www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2606.pdf) specifies for a few container constructors and resize member functions that they will provide "default constructed elements". For example, about one of the constructors of std::vector [vector.cons]: explicit ve... 21 Jun 2008 15:50
Simple parsing with iostreams
I use C++ standard IOStreams fairly extensively, but, while I use quite a lot of the functionality for formatted output, when it comes to input, I usually stick to unformatted input (e.g. with get / peek / ignore and friends) or std::getline. I rarely find myself using or writing custom operator>> on user-defined ... 19 Jun 2008 17:49
First  |  Prev |  Next  |  Last
Pages: 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42