I'm trying to write an object oriented application framework. The programs can be console or GUI based, but I'm having some difficulty providing a consistent interface for outputting structures. The...
It has been a while since I have been here, but my interest in computers is perking up again. Anyways, I would like to know if there is a standard way like through the STL to get a listing of files...
I like to look at source code whenever I can, but I can never figure out where to start. Obviously, the first step is to find main and then read on from there. Libraries are a different story, and I...
OK, I will file a bug report. It's not the multiplication that is messed up. It is multiplying and assigning. Not with the *=, but with the example above (I hope I am remembering this right. If I...
Are you saying it would be better for me to extend the blitz++ library. It cannot handle some things that it should be able to handle. Last time I use it, it produced odd results with things like (I...
What do you think is the best way to generate nested for loops using template metaprogramming? I'm making a library that performs basic vector and matrix algebra (I know about blitz++, but it does...
First, you should never double post. Read the before you post thread. Second, use code tags to display your code. Third, make sure to give all the relevant information when you post. Looking at the...
A command line program is a program that is run from a console like MSDOS or (if you use linux) a shell. I'm assuming you are using visual C++. If so, select new project (I no longer have Visual C++...
luh@r PTR_XOR is a macro. It takes in two values a and b. It type casts a and b to integers and the XOR's them together. It then converts that value back to a pointer of type void*. Macros are nice...
I suppose there is only one solution then. That is to add another template argument (maybe a couple because of other things I will be using the class for). Here's what I came up with (I'm not sure if...
Dope, dumb mistake. I know exactly what is happening now. The template is actually generating the function for Vector::iterator. It then looks to find Vector::iterator::iterator. It gets confused and...
The list class is designed to keep you away from raw access to pointers (That's why iterators were invented). The other problem you face is that when a list is updated the iterators become...
I figured it out! What it does is in the operator= overload for TinyMatrix it returns an object that has operator,(T_numtype) overloaded. That object takes as an argument an iterator to TinyMatrix....
I need to make my own iterator class. I'm following guides on the internet and looking at the example set by Josuttis in "The C++ Standard Library." Currently, I'm just playing around trying to get...
Wow, I'm glad I posted. There are actually a lot more functions in the Matrix class than I posted. I wanted to make looking through the code easier. I was actually going to implement operator...