Oh. Ok, great. I will try that.

Thanks!

On Wed, Mar 18, 2009 at 2:47 PM, John Peterson <[email protected]> wrote:

> On Wed, Mar 18, 2009 at 2:42 PM, Derek Gaston <[email protected]> wrote:
> > Andrea,
> >
> > I deal with this in my applications by providing a template
> > specialization for the print() operator like so:
> >
> > template<>
> > inline
> > void Parameters::Parameter<std::vector<Real> >::print (std::ostream&
> > os) const
> > {
> >   for (unsigned int i=0; i<_value.size(); i++)
> >     os << _value[i] << " ";
> > }
> >
> >
> > Substitute std::vector<Real> for whatever your type is.  I just have
> > this in a header file that my main.C pulls in.  I think it could also
> > work if you just put it right in main.C... but I'm not sure.
>
> Nice. Could you not template that on type T as well?  I think I
> remember a discussion about that on the list a while back and the
> conclusion was, you couldn't...
>
> --
> John
>
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to