f is of type
class fsys
, a class I wrote to handle quite a few filesystem operations, including quite a few very complex ones. It eliminates my having to use boost in so many of my files, and allows me to many things.
string fsys::current_directory()
will return the current directory as a string.
Here is a hypothetical example:
C:\Users\Username\Desktop
That would be the desktop.
Now, I can assure you that the error is not in that class, as I have thoroughly tested it. Also, I have isolated the issue. The issue is with
conv_id_to_str(const ID_T& id = def_id)
, because during my testing, it made it to that function, which means it passed
f.current_directory()
.
I know it is at conv_id_to_str(), and ive even pinpointed the location in the function where the error is occuring.
I will perform further tests tomorrow, as it is beginning to get late where I am.
Tests:
1 2
|
cout<< "id = "<< id<< endl;
wait() //wait for user input functio i wrote
| |
Mabey it has somthing to do with the number being passed...
***********************************
also, interesting, I might try that some other time.