Guest User

Untitled

a guest
Apr 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1.  
  2. #pragma once
  3.  
  4. namespace Interface
  5. {
  6. #include <boost\variant.hpp>
  7. #include "EventHandler.h"
  8. #include "EventFunction.h"
  9. #include "Factory.h"
  10. #include "Functionality.h"
  11. #include "SystemTypes.h"
  12.  
  13.  
  14. etc.
  15.  
  16. I want to use variant inside one of the headers included in the Interface namespace
  17.  
  18.  
  19. In one of the pulled in boost headers:
  20.  
  21.  
  22. #ifndef BOOST_TT_IS_INTEGRAL_HPP_INCLUDED
  23. #define BOOST_TT_IS_INTEGRAL_HPP_INCLUDED
  24.  
  25. #include <boost/config.hpp>
  26.  
  27. // should be the last #include
  28. #include <boost/type_traits/detail/bool_trait_def.hpp>
  29.  
  30. namespace boost {
  31.  
  32. //* is a type T an [cv-qualified-] integral type described in the standard (3.9.1p3)
  33. // as an extention we include long long, as this is likely to be added to the
  34. // standard at a later date
  35. #if defined( __CODEGEARC__ )
  36. BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_integral,T,__is_integral(T))
  37. #else
  38. BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_integral,T,false)
  39.  
  40. BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned char,true)
  41. BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned short,true)
  42. BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned int,true)
  43. BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned long,true)
  44.  
  45.  
  46. If I hover on the defines here it shows int Interface::boost etc. and I get a bunch of compiler errors (namespace doesn't exist)
Add Comment
Please, Sign In to add comment