Function traits042 (6/2/2011 9:37:38 PM) comp.lang.c++ Hi, I'm interested in detecting traits for function pointer, std::functions, functors (including lambdas), and std::bind expressions. At present I only care about nullary (i.e., no parameters) and unary (i.e., ... mlimber
Overloading a template member function with a dependent name638 (5/20/2011 8:37:46 PM) comp.lang.c++ I'm trying to overload a template member function with a dependent name involved. The following does not work as I'd like: class C { public: template void Foo( Iter ) { std::cout void Foo(... mlimber
Experiences with HP aC++ or Sun Studio C++?1544 (5/7/2008 9:34:26 PM) comp.lang.c++ I'm considering different platforms and compilers for a project. Anyone have experience (positive or negative) with HP aC++ on HP-UX? It seems fairly standard compliant since it supports Boost 1.34, but I'd lik... mlimber
Python help for a C++ programmer423 (1/16/2008 2:23:10 PM) comp.lang.python I'm writing a text processing program to process some survey results. I'm familiar with C++ and could write it in that, but I thought I'd try out Python. I've got a handle on the file I/O and regular expression... mlimber
Safe bool idiom - protected function not accessible1449 (12/14/2006 4:21:40 PM) comp.lang.c++ In an article on the safe bool idiom (http://www.artima.com/cppsource/safeboolP.html), Bjorn Karlsson gives the following code (slightly modified): class safe_bool_base { protected: typedef void (safe_bo... mlimber
Support for partial template specialization143 (4/27/2006 8:32:53 PM) comp.lang.c++ How accurate is this statement (particularly the last sentence) from the Wikipedia: "Most [C++] compilers only allow one to specialize all or none of the template's parameters. Ones that allow partial speciali... mlimber
Overloading with templates #2440 (4/27/2006 7:13:27 PM) comp.lang.c++ Any ideas why this code: #include using namespace std; struct Foo { void Bar( int, int, int ); template void Bar( typename vector::const_iterator, typename vector::const_iterator, ... mlimber
Volatile classes933 (11/30/2005 3:40:26 PM) comp.lang.c++ I am using placement new to locate a shared data structure at a particular location in shared memory. The problem is that when I access the data on one of the two processors sharing it, I don't get the same val... mlimber
Suboptimal optimization1989 (11/10/2005 12:28:08 PM) comp.lang.c++.moderated In a recent thread on comp.lang.c++ (http://groups.google.com/group/comp.lang.c++/browse_frm/thread/033d97e6592e0562), I posed a rather intricate problem, which boils down to the following: A const static memb... mlimber
Template instantiation question1242 (11/3/2005 5:43:25 PM) comp.lang.c++ This is a repost (with slight modifications) from comp.lang.c++.moderated in an effort to get some response. I am using Loki's Factory as presented in _Modern C++ Design_ for message passing in an embedded env... mlimber
global prefix and postfix ++ operator overloading338 (8/20/2008 9:16:21 PM) comp.lang.c++ Is it possible to overload increment(++) and decrement(--) postfix and prefix operators for primitive datatypes such as int, char, short, etc. in global scope (vs as a class member function where this is poss... bigmurali(10)
c++ design question: store identifiers346 (8/21/2008 1:14:43 PM) comp.lang.c++ I have this problem: I read string identifiers from the file, and based on identifier I want to invoke certain function. So, in theory, I need something like enum that supports strings, and then do switch t... ironsel2000(708)
Building the name of an executable function450 (8/21/2008 1:48:40 PM) comp.lang.c++ I need to build the name of a function from data in a text file. For example, after reading the variables 'FCTN_PREFIX' AND 'FCTN_SUFFIX' from the text file, I need to execute the function: FCTN_PREFIX & 'TXT1... jeff.p.bledsoe(12)
pointer to function in constructor342 (8/21/2008 2:29:55 PM) comp.lang.c++ Hello all. I have to convert a program from C to C++. The original code used drivers that were available in C, and now are only available in C++. Thus, I have the "honour" of converting the code. There are a c... anton.harris(12)
error: function is taken as an micro1336 (8/21/2008 4:19:40 PM) comp.lang.c++ hello everyone, i use a function called minor to find the minor of an element of a matrix , i declare it as : float minor(float A[ ][COL],int m,int n,int i,int j);//find the minor in A[][] and define it late... mohangupta13(109)
[Visual C++ .NET] Picking up the date by user.446 (8/22/2008 1:07:52 PM) comp.lang.c++ Hello there. What is the simplest way to ask customer for a date and get all these information like day, month and year of choice? I need it in my program to set an event and remember it. Later on i need t... zebik(200)
Check Microsoft Signature147 (8/27/2008 5:20:00 PM) comp.lang.c++ Hi, Anybody knows how to write the code to see if the exe or dll is signed by Microsoft? Can we use sigVrif in the code to check the Microsoft signature for a file? If yes how? Thanks TS ... Samant.Trupti(36)
Exception information in catch(...) statement640 (9/1/2008 3:45:18 PM) comp.lang.c++ Hi is it possible to receive information like type of exception (division by zero/null pointer/...), memory adress or source line number in a catch(...) statement? main() { try { // do somet... Bernie
RSS/Atom library141 (2/11/2009 11:28:26 PM) comp.lang.c++ Hi, I am looking for a library that can parse atom & rss feeds. Has anyone used such a library in the past? Please let me know. thanks ~ Prathap ... prathapnirmal(10)