Commit d0bc8923 authored by Kenneth Leiter's avatar Kenneth Leiter

COMP: Fix compiler errors on clang.

Fix XdmfTopologyType vector to be reference rather than copy.
parent 9bc2ad74
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <cctype> #include <cctype>
#include <sstream> #include <sstream>
#include <utility> #include <utility>
#include <vector>
#include "XdmfError.hpp" #include "XdmfError.hpp"
#include "XdmfTopologyType.hpp" #include "XdmfTopologyType.hpp"
...@@ -563,7 +562,7 @@ XdmfTopologyType::New(const unsigned int id) ...@@ -563,7 +562,7 @@ XdmfTopologyType::New(const unsigned int id)
XdmfTopologyType::XdmfTopologyType(const unsigned int nodesPerElement, XdmfTopologyType::XdmfTopologyType(const unsigned int nodesPerElement,
const unsigned int facesPerElement, const unsigned int facesPerElement,
std::vector<shared_ptr<const XdmfTopologyType> > faces, const std::vector<shared_ptr<const XdmfTopologyType> > & faces,
const unsigned int edgesPerElement, const unsigned int edgesPerElement,
const std::string & name, const std::string & name,
const CellType cellType, const CellType cellType,
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#define XDMFTOPOLOGYTYPE_HPP_ #define XDMFTOPOLOGYTYPE_HPP_
// Includes // Includes
#include <vector>
#include "Xdmf.hpp" #include "Xdmf.hpp"
#include "XdmfItemProperty.hpp" #include "XdmfItemProperty.hpp"
...@@ -344,7 +345,7 @@ protected: ...@@ -344,7 +345,7 @@ protected:
*/ */
XdmfTopologyType(const unsigned int nodesPerElement, XdmfTopologyType(const unsigned int nodesPerElement,
const unsigned int facesPerElement, const unsigned int facesPerElement,
std::vector<shared_ptr<const XdmfTopologyType> > faces, const std::vector<shared_ptr<const XdmfTopologyType> > & faces,
const unsigned int edgesPerElement, const unsigned int edgesPerElement,
const std::string & name, const std::string & name,
const CellType cellType, const CellType cellType,
......
...@@ -84,7 +84,7 @@ check_cxx_source_compiles(" ...@@ -84,7 +84,7 @@ check_cxx_source_compiles("
struct Base { virtual ~Base(){} }; struct Base { virtual ~Base(){} };
struct Derived : public Base {}; struct Derived : public Base {};
int main(int ac, char * av) int main(int ac, char * av[])
{ {
boost::shared_ptr<Base> ptr(new Base()); boost::shared_ptr<Base> ptr(new Base());
boost::shared_dynamic_cast<Derived>(ptr); boost::shared_dynamic_cast<Derived>(ptr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment