summaryrefslogtreecommitdiff
path: root/src/GudhUI/model
diff options
context:
space:
mode:
authorsalinasd <salinasd@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-01-27 11:44:49 +0000
committersalinasd <salinasd@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-01-27 11:44:49 +0000
commita160f39457e8dc0947dc5d6865c020a285a50df6 (patch)
tree4ce007d49b9b7694b4e9fc19402f5e1daeefb967 /src/GudhUI/model
parentf527cde6342c5b8109a20f0a6b483327c6569844 (diff)
compatibility vs2013
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@429 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 1ce2e6b9c85e603715e8f1f63715263f9bd09702
Diffstat (limited to 'src/GudhUI/model')
-rw-r--r--src/GudhUI/model/Model.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/GudhUI/model/Model.h b/src/GudhUI/model/Model.h
index 0d0f91e6..abb2fd6a 100644
--- a/src/GudhUI/model/Model.h
+++ b/src/GudhUI/model/Model.h
@@ -68,8 +68,8 @@ class Model{
public:
Complex complex_;
- typedef typename Complex::Vertex_handle Vertex_handle;
- typedef typename Complex::CVI CVI;
+ typedef Complex::Vertex_handle Vertex_handle;
+ typedef Complex::CVI CVI;
Model():complex_(){
@@ -176,16 +176,16 @@ public:
private:
int min_degree() const{
- int res = std::numeric_limits<int>::max();
+ int res = (std::numeric_limits<int>::max)();
for(auto v : complex_.vertex_range())
- res= std::min(res,complex_.degree(v));
+ res= (std::min)(res,complex_.degree(v));
return res;
}
int max_degree() const{
int res = 0;
for(auto v : complex_.vertex_range())
- res= std::max(res,complex_.degree(v));
+ res= (std::max)(res,complex_.degree(v));
return res;
}
@@ -216,7 +216,7 @@ public:
Clock clock;
for(const auto &s : complex_.simplex_range()){
num_simplices++;
- dimension = std::max(s.dimension(),dimension);
+ dimension = (std::max)(s.dimension(),dimension);
if(s.dimension()%2==0)
euler+=1;
else
@@ -245,7 +245,7 @@ public:
int dimension = 0;
for(const auto &s : complex_.simplex_range()){
num_simplices++;
- dimension = std::max(s.dimension(),dimension);
+ dimension = (std::max)(s.dimension(),dimension);
if(s.dimension()%2==0)
euler+=1;
else