Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Armin Wehrfritz
Xdmf
Commits
d0bc8923
Commit
d0bc8923
authored
Dec 04, 2013
by
Kenneth Leiter
Browse files
COMP: Fix compiler errors on clang.
Fix XdmfTopologyType vector to be reference rather than copy.
parent
9bc2ad74
Changes
3
Hide whitespace changes
Inline
Side-by-side
XdmfTopologyType.cpp
View file @
d0bc8923
...
@@ -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
,
...
...
XdmfTopologyType.hpp
View file @
d0bc8923
...
@@ -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
,
...
...
core/CMakeLists.txt
View file @
d0bc8923
...
@@ -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);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment