The substitution is actually inside a for loop which searches through folders and returns the filename. I wanted to pass in the original(source) and new(dest) regular expressions as strings on the command line (using ARGV[1] etc). (the original filename 'format' isn't the same in each folder, so...
I am doing a find-replace on filenames which are 2 numbers then description. I need to transform the filenames. I would like the 2 parts of the substitution as variables (so that I can pass in on the command line). I show a cutdown version here. This works:
my $source = "(\\d\\d)(\.\*)" ;
$_ =...
Thanks again for your quick reply. However, I have implemented an operator= function in BOTH the template AND the derived class (see below). Perhaps my question should then be, what is wrong with my declaration of operator= in the base template and derived class?
In this case I do not actually...
Thanks. I am aware operator=, copy constructor etc are not inherited, hence in the derived class I am calling the base class' operator=. Even without doing that a default operator= should be called in the derived class which would do something, but I would not expect a compile error.
I am...
If you want to put the implementation in the .cpp file and you know what the template parameters will be, put the following at the top of your .cpp file:
#pragma warning(disable: 4660)
template class YourTemplate<double>;
template class YourTemplate<complex<double> >;
etc
JonnoA
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.