|
Changing coordinate systems in mid-development In an article whose nested quoting has overflowed my mental stack, someone wrote # Re the x,y point example Francis provided: Chris has already astutely # mentioned the possibility of changing the implementation to use polar # coordinates. Alan McKenney <alan_mckenney1(a)yahoo.com> asked: Again, I ask: have you... 10 Jul 2008 15:29
Auto_ptr<> woes. Hi, I have the following test case which is boiled down from real code. The problem is that Foo * foo (); auto_ptr<Foo> ap; ap = foo (); does not do what I thought it should have done. With GCC it does not compile; with MSVC8 it does compile but breaks. I have stepped through the MSVC8 compiled code and it goes th... 11 Jul 2008 16:07
SOCI 3.0.0 - The C++ Database Access Library I am pleased to announce that the 3.0.0 release of the SOCI library is available for download from the main project website: http://soci.sourceforge.net/ http://sourceforge.net/project/showfiles.php?group_id=121480 The SOCI library is a C++ database access library that during the last years was recognized for ... 10 Jul 2008 15:29
String literals Hi, I have a problem in understanding what is wrong with the function call 'fun1(pc1)' in the code below. I am sure I am missing something really basic and silly in my understanding. void fun1(const char (& arr)[5]) { cout << sizeof(arr); } int main(int argc, char **argv){ const char *pc1 = "2008"; con... 12 Jul 2008 05:24
Struggling with optional funtionality in a derived class Hello, To start with I don't know if the way I am skinning this cat is a good way or not, so if there is a better way of doing it all together please let me know. I want to enable functionality (members functions + variables) in a template class based on a compile time known flag such that if the flag is false... 10 Jul 2008 21:39
N2691 Inconsistencies in construct_element requirements In section 20.7.9 [construct.element] the Effects clause contains (options 2 and 3): - if constructible_with_allocator_prefix<T, A::inner_allocator_type, Args...> is derived from true_type, alloc.construct(alloc.address(r), allocator_arg_t, alloc.inner_allocator(), args...) - if constructible_with_... 9 Jul 2008 14:44
N2691 Inconsistensies in scoped_allocator_adaptor members In section 20.7.6.2 [allocator.adaptor.members], the allocate and deallocate members are defined as pointer allocate(size_type n); 2 Returns: outer_allocator().allocate(n) template <typename HintP> pointer allocate(size_type n, HintP u); 3 Returns: outer_allocator().allocate(n, u) ... 7 Jul 2008 19:42
Fat String Class { Accepted (even though not C++-specific) because there seems to be a wide interest in custom C++ string classes, indicating that std::basic_string may be lacking, and that a discussion about the desired functionality of string classes may serve to guide e.g. proposals & other future such classes. -mod/aps } H... 24 Jul 2008 01:37
auto concept StrictWeakOrder Hi, This is in regards with the proposed core concepts paper n2677. It defines the strict weak ordering concept with: auto concept StrictWeakOrder<typename F, typename T> : Predicate<F, T, T> ... and a number of axioms follow. If I read it correctly, any function that that takes two arguments of the same an... 7 Jul 2008 19:42
Why not reject the dynamic instantiation of a class with non-virtual destructor? Niklas Bäckman ha scritto: Alberto Ganesh Barbati <AlbertoBarbati(a)libero.it> wrote in news:QbIak.108854$FR.364654(a)twister1.libero.it: Niklas Bäckman ha scritto: Will not C++0x fix this by automatically making the destructor virtual as well if there are other virtual member functions in the ... 6 Jul 2008 18:06 |