First  |  Prev |  Next  |  Last
Pages: 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
16 bit to 1 bit conversion
On Jan 8, 4:20 pm, sidkdbl07 <sidkwak...(a)gmail.com> wrote: On Dec 15 2007, 3:56 pm, Alex Shulgin <alex.shul...(a)gmail.com> wrote: On Dec 15, 6:12 am, sidkdbl07 <sidkwak...(a)gmail.com> wrote: I have a binary file with 16-bit samples and I'd like to down convert to 1-bit Here's what... 9 Jan 2008 11:07
Can template instantiation be a POD?
Consider the following class template template<class T> struct foo { T bar; }; Is foo<int> a POD according to the standard? In general, if an instantiation of a class template creates something that would have been a POD if it were declared as a regular class, is this a POD? -- Eugene ... 10 Jan 2008 17:25
Exception class with shift operator
Hello, I would like to use a shift operator for storing information associated to an exception, as follows: #include <stdexcept> #include <string> void foo() { double x = 0.0; unsigned long u = 1; std::string s("Runtime error detected in "); // What I would like to do: throw std::runtime_er... 10 Jan 2008 17:25
Requiring client code to provide implementation file.
I'm wondering if it is possible to do the following, perhaps with some pre-processor trickery? When providing a class, we usually provide a header file with the class declaration (and possibly some inline implementations), and an implementation file. My question is: is it possible for a given framework to... 10 Jan 2008 09:51
std::ostream oddity
Andreas Magnusson <eamagnusson(a)gmail.com> writes: I've tried the following code both with two different version of MSVC (7.1 and 8) and GCC, all of them give the same (for me) strange result. First the code: class sstream_derived : public std::stringstream The Standard C++ Library stream classes are... 9 Jan 2008 11:07
What the program would behave if an exception is thrown in an environment with exception disabled
In article <9ef43128-635c-45cf-9f06-972386d61688 @h11g2000prf.googlegroups.com>, lancediduck(a)nyc.rr.com says... [ ... ] Isn't it amazing, even 17+ years after publication of the C++ ARM, that exceptions are STILL a topic of political debate? Not really -- debate over exceptions had been going strong for ... 5 Jan 2008 18:26
Anonymity & Object Lifetime
Hi. I'm wondering why simply naming an object changes its lifetime. Foo foo(1); // vs. Foo(1); I image the technical reason is that the latter is an expression instead of a declaration. Is this correct? I would still like to learn what the rationale is for this difference. Why shouldn't anonymous ob... 5 Jan 2008 12:50
mixed-sign arithmetic and auto
I have had a mini- or probably micro- or even milli-epiphany: using "auto" will exacerbate C's broken unsigned arithmetic, which C++ also inherited. As we all know, in C, any expression that has unsigned within a radius of a mile will also have type unsigned. This is a simple rule but one of remarkable bluntness... 22 Jan 2008 06:05
(unsigned) char == (platform) byte ?
Hi I know that sizeof(char) == 1 (as per ISO C and C++), (if I remember well from the C++ standard text) that the definition of a byte was the smallest object that the machine could address, that a machine byte does hold a char but we don't know yet that all possible values of a machine byte can be stored in a c... 10 Jan 2008 10:24
Binding template parameters (template aliasing) in C++03
Hi I am working these days with TypeLists similar to what mr. Alexandrescu describes in his well known book. So I made a generic TransformList metafunction that applies a given single parameter metafunction on a list like: template<typename List, template<typename> class MetaFunction> struct TransformList; ... 4 Jan 2008 13:30
First  |  Prev |  Next  |  Last
Pages: 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65