summaryrefslogtreecommitdiff
path: root/newstructure/thirdparty/linux/include/coin/CoinDistance.hpp
diff options
context:
space:
mode:
authorHarpreet2016-09-03 00:36:51 +0530
committerHarpreet2016-09-03 00:36:51 +0530
commita0d9443af147e949c1e6a01ac24749d12593ec5b (patch)
tree1a1955c5482ae608fd7f618b06f4ecc6a0d39a23 /newstructure/thirdparty/linux/include/coin/CoinDistance.hpp
parent4b64cf486f5c999fd8167758cae27839f3b50848 (diff)
downloadFOSSEE-Optim-toolbox-development-a0d9443af147e949c1e6a01ac24749d12593ec5b.tar.gz
FOSSEE-Optim-toolbox-development-a0d9443af147e949c1e6a01ac24749d12593ec5b.tar.bz2
FOSSEE-Optim-toolbox-development-a0d9443af147e949c1e6a01ac24749d12593ec5b.zip
cbcintlinprog added
Diffstat (limited to 'newstructure/thirdparty/linux/include/coin/CoinDistance.hpp')
-rw-r--r--newstructure/thirdparty/linux/include/coin/CoinDistance.hpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/newstructure/thirdparty/linux/include/coin/CoinDistance.hpp b/newstructure/thirdparty/linux/include/coin/CoinDistance.hpp
deleted file mode 100644
index acaa908..0000000
--- a/newstructure/thirdparty/linux/include/coin/CoinDistance.hpp
+++ /dev/null
@@ -1,48 +0,0 @@
-/* $Id: CoinDistance.hpp 1372 2011-01-03 23:31:00Z lou $ */
-// Copyright (C) 2000, International Business Machines
-// Corporation and others. All Rights Reserved.
-// This code is licensed under the terms of the Eclipse Public License (EPL).
-
-#ifndef CoinDistance_H
-#define CoinDistance_H
-
-#include <iterator>
-
-//-------------------------------------------------------------------
-//
-// Attempt to provide an std::distance function
-// that will work on multiple platforms
-//
-//-------------------------------------------------------------------
-
-/** CoinDistance
-
-This is the Coin implementation of the std::function that is
-designed to work on multiple platforms.
-*/
-template <class ForwardIterator, class Distance>
-void coinDistance(ForwardIterator first, ForwardIterator last,
- Distance& n)
-{
-#if defined(__SUNPRO_CC)
- n = 0;
- std::distance(first,last,n);
-#else
- n = std::distance(first,last);
-#endif
-}
-
-template <class ForwardIterator>
-size_t coinDistance(ForwardIterator first, ForwardIterator last)
-{
- size_t retVal;
-#if defined(__SUNPRO_CC)
- retVal = 0;
- std::distance(first,last,retVal);
-#else
- retVal = std::distance(first,last);
-#endif
- return retVal;
-}
-
-#endif