Candidate_v1.7.0
        stable
      
      
        
          | 
            Last change
 on this file since 38bcbe was             dde50d, checked in by Frederik Heber <frederik.heber@…>, 9 years ago           | 
        
        
          | 
             
FIX: boost::serialization 1.58 introduced changes which breaks stand-alone compilation for a few headers. 
 
- there we had to add boost/serialization/serialization.hpp prior to any other
serialization header.
  
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            886 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [f0674a] | 1 | /*
 | 
|---|
 | 2 |  * KeySet.hpp
 | 
|---|
 | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Oct 20, 2011
 | 
|---|
 | 5 |  *      Author: heber
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | #ifndef KEYSET_HPP_
 | 
|---|
 | 9 | #define KEYSET_HPP_
 | 
|---|
 | 10 | 
 | 
|---|
 | 11 | #ifdef HAVE_CONFIG_H
 | 
|---|
 | 12 | #include <config.h>
 | 
|---|
 | 13 | #endif
 | 
|---|
 | 14 | 
 | 
|---|
 | 15 | #include <set>
 | 
|---|
 | 16 | 
 | 
|---|
| [dde50d] | 17 | // bug in boost/serialization 1.58. set.hpp needs serialization.hpp included before
 | 
|---|
 | 18 | #include <boost/serialization/serialization.hpp>
 | 
|---|
 | 19 | 
 | 
|---|
| [78202b] | 20 | #include <boost/serialization/base_object.hpp>
 | 
|---|
 | 21 | #include <boost/serialization/set.hpp>
 | 
|---|
| [f0674a] | 22 | 
 | 
|---|
 | 23 | class KeySet : public std::set<int>
 | 
|---|
 | 24 | {
 | 
|---|
 | 25 | public:
 | 
|---|
 | 26 |   KeySet();
 | 
|---|
 | 27 |   ~KeySet();
 | 
|---|
 | 28 | 
 | 
|---|
 | 29 |   bool operator<(const KeySet &a) const;
 | 
|---|
| [75363b] | 30 | 
 | 
|---|
 | 31 |   bool ScanBufferIntoKeySet(char *buffer);
 | 
|---|
| [78202b] | 32 | 
 | 
|---|
 | 33 | private:
 | 
|---|
 | 34 |   friend class boost::serialization::access;
 | 
|---|
 | 35 |   // serialization
 | 
|---|
 | 36 |   template <typename Archive>
 | 
|---|
 | 37 |   void serialize(Archive& ar, const unsigned int version)
 | 
|---|
 | 38 |   {
 | 
|---|
 | 39 |     ar & boost::serialization::base_object< std::set<int> >(*this);
 | 
|---|
 | 40 |   }
 | 
|---|
| [f0674a] | 41 | };
 | 
|---|
 | 42 | 
 | 
|---|
 | 43 | typedef std::pair<KeySet::iterator, bool> KeySetTestPair;
 | 
|---|
 | 44 | 
 | 
|---|
 | 45 | #endif /* KEYSET_HPP_ */
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.