Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JonnoA

    Backsubstitution in a variable?

    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...
  2. JonnoA

    Backsubstitution in a variable?

    Unfortunately that doesn't work either. In the example shown, the output is data $1 The output should be data 35
  3. JonnoA

    Backsubstitution in a variable?

    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)(\.\*)" ; $_ =...
  4. JonnoA

    operator= in template derived class

    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...
  5. JonnoA

    operator= in template derived class

    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...
  6. JonnoA

    operator= in template derived class

    I have a template class template<class T> class WavesetTemplate { public: ... WavesetTemplate<T>& operator=( const WavesetTemplate<T>& ); friend WavesetTemplate<T> operator*(const WavesetTemplate<T>& lhs, const WavesetTemplate<T>& rhs); protected: vector<vector<T> > m_TemplateData; ... }; and...
  7. JonnoA

    Lineker has template class problem (LNK2001)

    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

Part and Inventory Search

Back
Top