Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
Xdmf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Ruben Di Battista
Xdmf
Commits
d0bc8923
Commit
d0bc8923
authored
Dec 04, 2013
by
Kenneth Leiter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
XdmfTopologyType.cpp
XdmfTopologyType.cpp
+1
-2
XdmfTopologyType.hpp
XdmfTopologyType.hpp
+2
-1
core/CMakeLists.txt
core/CMakeLists.txt
+1
-1
No files found.
XdmfTopologyType.cpp
View file @
d0bc8923
...
...
@@ -24,7 +24,6 @@
#include <cctype>
#include <sstream>
#include <utility>
#include <vector>
#include "XdmfError.hpp"
#include "XdmfTopologyType.hpp"
...
...
@@ -563,7 +562,7 @@ XdmfTopologyType::New(const unsigned int id)
XdmfTopologyType
::
XdmfTopologyType
(
const
unsigned
int
nodesPerElement
,
const
unsigned
int
facesPerElement
,
std
::
vector
<
shared_ptr
<
const
XdmfTopologyType
>
>
faces
,
const
std
::
vector
<
shared_ptr
<
const
XdmfTopologyType
>
>
&
faces
,
const
unsigned
int
edgesPerElement
,
const
std
::
string
&
name
,
const
CellType
cellType
,
...
...
XdmfTopologyType.hpp
View file @
d0bc8923
...
...
@@ -25,6 +25,7 @@
#define XDMFTOPOLOGYTYPE_HPP_
// Includes
#include <vector>
#include "Xdmf.hpp"
#include "XdmfItemProperty.hpp"
...
...
@@ -344,7 +345,7 @@ protected:
*/
XdmfTopologyType
(
const
unsigned
int
nodesPerElement
,
const
unsigned
int
facesPerElement
,
std
::
vector
<
shared_ptr
<
const
XdmfTopologyType
>
>
faces
,
const
std
::
vector
<
shared_ptr
<
const
XdmfTopologyType
>
>
&
faces
,
const
unsigned
int
edgesPerElement
,
const
std
::
string
&
name
,
const
CellType
cellType
,
...
...
core/CMakeLists.txt
View file @
d0bc8923
...
...
@@ -84,7 +84,7 @@ check_cxx_source_compiles("
struct Base { virtual ~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_dynamic_cast<Derived>(ptr);
...
...
Write
Preview
Markdown
is supported
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