Browse Source

Fixes for Windows

Former-commit-id: 1aaa1fee36
main
David_Korzeniewski 11 years ago
parent
commit
135b40e887
  1. 8
      src/storage/StateBlock.cpp
  2. 10
      src/storage/StateBlock.h
  3. 4
      src/storage/StronglyConnectedComponent.h

8
src/storage/StateBlock.cpp

@ -2,19 +2,19 @@
namespace storm { namespace storm {
namespace storage { namespace storage {
typename StateBlock::iterator StateBlock::begin() {
StateBlock::iterator StateBlock::begin() {
return states.begin(); return states.begin();
} }
typename StateBlock::const_iterator StateBlock::begin() const {
StateBlock::const_iterator StateBlock::begin() const {
return states.begin(); return states.begin();
} }
typename StateBlock::iterator StateBlock::end() {
StateBlock::iterator StateBlock::end() {
return states.end(); return states.end();
} }
typename StateBlock::const_iterator StateBlock::end() const {
StateBlock::const_iterator StateBlock::end() const {
return states.end(); return states.end();
} }

10
src/storage/StateBlock.h

@ -17,16 +17,16 @@ namespace storm {
class StateBlock { class StateBlock {
public: public:
typedef FlatSetStateContainer container_type; typedef FlatSetStateContainer container_type;
typedef typename container_type::value_type value_type;
typedef container_type::value_type value_type;
static_assert(std::is_same<value_type, sparse::state_type>::value, "Illegal value type of container."); static_assert(std::is_same<value_type, sparse::state_type>::value, "Illegal value type of container.");
typedef typename container_type::iterator iterator;
typedef typename container_type::const_iterator const_iterator;
typedef container_type::iterator iterator;
typedef container_type::const_iterator const_iterator;
// Default constructors. // Default constructors.
StateBlock() = default; StateBlock() = default;
StateBlock(StateBlock const& other) = default;
StateBlock(StateBlock&& other) = default;
StateBlock(StateBlock const& other) = default;
#ifndef WINDOWS #ifndef WINDOWS
StateBlock(StateBlock&& other) = default;
StateBlock& operator=(StateBlock const& other) = default; StateBlock& operator=(StateBlock const& other) = default;
StateBlock& operator=(StateBlock&& other) = default; StateBlock& operator=(StateBlock&& other) = default;
#endif #endif

4
src/storage/StronglyConnectedComponent.h

@ -15,9 +15,9 @@ namespace storm {
class StronglyConnectedComponent : public StateBlock { class StronglyConnectedComponent : public StateBlock {
public: public:
StronglyConnectedComponent() = default; StronglyConnectedComponent() = default;
StronglyConnectedComponent(StronglyConnectedComponent const& other) = default;
StronglyConnectedComponent(StronglyConnectedComponent&& other) = default;
StronglyConnectedComponent(StronglyConnectedComponent const& other) = default;
#ifndef WINDOWS #ifndef WINDOWS
StronglyConnectedComponent(StronglyConnectedComponent&& other) = default;
StronglyConnectedComponent& operator=(StronglyConnectedComponent const& other) = default; StronglyConnectedComponent& operator=(StronglyConnectedComponent const& other) = default;
StronglyConnectedComponent& operator=(StronglyConnectedComponent&& other) = default; StronglyConnectedComponent& operator=(StronglyConnectedComponent&& other) = default;
#endif #endif

Loading…
Cancel
Save