Type: Posts; User: souldog
Search took 0.15 seconds.
December 27th, 2011, 07:35 PM
template<typename P, typename B>
class POD_PARAMETER_INTERFACE_BASE_MIXIN : public B
typedef POD_PARAMETER_INTERFACE_BASE_MIXIN<P, B> THIS_TYPE;
typedef B BASE;
October 20th, 2009, 11:55 AM
October 20th, 2009, 01:40 AM
to start of with the widgets. The problem is the WIDGET_TEST parameters.
One solution is to use a base class for these parameters and then introduce an intermediary base class that does the...
October 19th, 2009, 04:56 AM
What exactly is WIDGET_TEST. What do these parameters do
October 17th, 2009, 04:43 PM
what does your file look like?
October 16th, 2009, 01:26 PM
I have learned a lot from reading your posts over the years and am sorry to see you go.
October 15th, 2009, 10:48 PM
October 15th, 2009, 12:04 PM
no, you do not need to include the header file for class 1 in the header file for class 2 if class 1 is forward declared in the header for class 2 and only pointers or references to class 1 are used...
October 15th, 2009, 12:00 PM
you need to understand scope of an object
my_array = 5;
my_array = 10;
my_array = 25;
October 14th, 2009, 02:59 PM
October 14th, 2009, 12:29 PM
Hmmm... I am really having a hard time finding any "rude" comments and in fact find the over-sensitivity annoying. Maybe you should try and understand what is being said instead of getting your...
October 14th, 2009, 02:36 AM
I have not thought about it much, but perhaps you can use something from the boost library.
October 12th, 2009, 11:33 PM
Couldn't agree more. Always practice defensive coding style. I would much rather have "ugly" code, than waste time debugging trivial syntax errors.
October 12th, 2009, 05:20 PM
Good point. Once you turn that page, more likely than not you will never need to go back and read it.
October 12th, 2009, 12:56 AM
October 12th, 2009, 12:51 AM
ekhule, what you are describing here sounds like http://en.wikipedia.org/wiki/Policy-based_design and/or mix-in base classes
October 5th, 2009, 12:42 PM
you might want to consider using the C++ io streams for writing and reading binary files. They are easier to use than directly using the WIN32 API.
October 5th, 2009, 10:51 AM
Which is why I asked if you were joking.
October 4th, 2009, 10:26 PM
October 3rd, 2009, 07:24 PM
you are calling a invalid index on the order vector,
Just like C-style arrays, vectors are 0 indexed. So the vector
has four valid entries
October 2nd, 2009, 12:38 PM
template parameters must have external linkage to avoid multiple instantiations of a template class across translation unit boundaries
October 2nd, 2009, 12:36 PM
instead of using the preprocessor tricks Paul has mentioned you can just place the declaration in an anonymous namespace to solve the linker problem. That is one of the things anonymous namespaces...
October 2nd, 2009, 11:09 AM
the string you are passing as a template parameter needs to have external linkage and be named. You would need to explicitly declare a variable for the string
const char bla = "bla";
October 2nd, 2009, 10:58 AM
you should be using boost::shared_ptr instead of raw pointers
October 2nd, 2009, 10:24 AM
this problem has two parts.
1. Use integer arithmetic operations to break a number into two numbers.
One representing the part less than 1000 and one representing the part greater than 1000.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!