Unfortunately we also have vectors of vectors (of vectors)! But yeah I think we should either do that or take print capability out of parameters.
I'll do something tomorrow. Sent from my iPhone On Dec 16, 2008, at 8:17 PM, Benjamin Kirk <[email protected]> wrote: >> os << _value; >> >> This doesn't work if the parameter type is something like a >> std::vector... it won't even compile. Any ideas on dealing with >> this? For now, we've just commented out that line of code (we don't >> need to print the parameters) and continued on.... but what is the >> correct solution? > > Hmm... Create a generic <typename T> (as is currently done), and > also add a > <std::vector<typename T> > specialization: > > template <typename T> > inline > void Parameters::Parameter<T>::print (std::ostream& os) const > { > os << _value; > } > > template <std::vector< typename T> > > inline > void Parameters::Parameter<T>::print (std::ostream& os) const > { > for (unsinged int p=0; ...) > } > > Will that do it? > > -Ben > > ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Libmesh-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-devel
