|
wide codecvt not used unless sync_with_stdio(false) Hi! I'm facing a problem with the following code that uses a custom codecvt facet for wide streams. The facet is taken from Boost (actually a recent svn trunk checkout, but the considered code did not change a while, a 1.34 or 1.35 release would do) and converts wchar_t internally and UTF-8 externally. #inclu... 7 May 2008 12:35
Template function problem language or compiler bug? Hi, I found a bit of a weirdo using Intel 4.5 compiler & I've seen similar bad stuff in VC6. I don't know if it is a language 'feature' or a bug in the compiler's template handling - the compilers are old. Basically I have a template function (as a member in a class) with void return & argument. To use the fun... 7 May 2008 12:35
sorting criteria (understanding) Hi, unfortunately I have lost the link to the anwer of the question: "Why is the functor of a std::sort copied several times?" What's the reason for this handling? I have written a template adapter to use a given object providing the required sorting criteria so the concrete instance does not get copied and... 7 May 2008 12:35
templates - partial specialization Hello All, I was trying to execute couple of examples to understand the partial template specialization concept. Here is one among those. #include<iostream> using namespace std; template<class T> class my_vec { public: my_vec(){std::cout<<"im class my_vec<class T> \n";} }; template <cl... 7 May 2008 11:47
Exceptions vs. undefined behaviour IIRC, the standard library avoids throwing exceptions so that users which compile without exception support shall be able to use as much of the standard library as possible. Is this correct, incorrect or are there other motivations? Will this also be the case for the newly accepted libraries and for TR2? Will... 6 May 2008 23:25
some quirks of Koenig lookup rule? Hi Can someone explain this peculiar behavior of MSVC & GCC: code below, if you uncomment that line (which is totally unrelated to 'dph' class), will stop compiling with usual bizzare C++ error [code] #include <iostream> namespace AAA { struct gad { }; //std::ostream& operator<<(st... 7 May 2008 12:35
How to convert a pointer to member function type to a const member one On 5 Mag, 15:09, "Roman.Perepeli...(a)gmail.com" <Roman.Perepeli...(a)gmail.com> wrote: On 1 May, 21:43, mcostalba <mcosta...(a)gmail.com> wrote: I have to detect if a functor type Fun has a given signature Sig, i.e. if Fun::operator() has a signature Sig Take a look at is_call_possible metafunction, w... 7 May 2008 12:35
Sending a stream of unsigned char's On Apr 26, 9:43 am, "Angus" <nos...(a)gmail.com> wrote: Hello I want to create streams of data that will include fundamental data types but not classes or pointers. Eg I might want create a stream with a header(2 bytes), a length of message (2 bytes), and then use the basic structure size,data where si... 6 May 2008 22:21
C++ language: Cloneable classes I'm working on a Cloneable concept for C++ classes. Here's what I think it should be like, however it doesn't compile :? #include <memory> class CloneableBase { public: virtual ~CloneableBase() {} private: virtual CloneableBase* doClone() const = 0; }; template < typename Derived > class Clonea... 7 May 2008 12:35
How to convert a pointer to member function type to a const member one On 1 May, 21:43, mcostalba <mcosta...(a)gmail.com> wrote: I have to detect if a functor type Fun has a given signature Sig, i.e. if Fun::operator() has a signature Sig Take a look at is_call_possible metafunction, which was discussed in this group before (http://groups.google.com/group/comp.lang.c++.moderated/... 7 May 2008 12:35 |