I'm editing the linear algebra interface to add support for generic
Krylov matrices and I'm seeing things like this:


    /// Create empty vector (global)
    boost::shared_ptr<GenericVector> create_vector() const
    {
      boost::shared_ptr<GenericVector> x(new MTL4Vector);
      return x;
    }

    /// Create empty vector (local)
    boost::shared_ptr<GenericVector> create_local_vector() const
    {
      boost::shared_ptr<GenericVector> x(new MTL4Vector);
      return x;
    }

I thought () was required:

    boost::shared_ptr<GenericVector> x(new MTL4Vector());

Has this always been the case?

--
Anders

_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help   : https://help.launchpad.net/ListHelp

Reply via email to