Changeset 26c242


Ignore:
Timestamp:
Oct 18, 2011, 3:40:40 PM (14 years ago)
Author:
Frederik Heber <heber@…>
Children:
aead7d
Parents:
cc78ae
git-author:
Frederik Heber <heber@…> (09/21/11 08:59:31)
git-committer:
Frederik Heber <heber@…> (10/18/11 15:40:40)
Message:

FIX: Embraced troublesome includes in MemDebug.hpp with ifdefs.

  • This includes them only when they are present.
  • Note that (this is to fix compile problems with LinearAlgebra).
    • Thread depends on optional and shared.
    • bind was missing.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Helpers/MemDebug.hpp

    rcc78ae r26c242  
    5454// to be loaded before the define
    5555#include <string>
     56#if defined HAVE_BOOST_OPTIONAL_HPP || defined HAVE_BOOST_THREAD_HPP
    5657#include <boost/optional.hpp>
     58#endif
     59#if defined HAVE_BOOST_SHARED_PTR_HPP || defined HAVE_BOOST_THREAD_HPP
    5760#include <boost/shared_ptr.hpp>
     61#endif
     62#ifdef HAVE_BOOST_BIND_HPP
     63#include <boost/bind.hpp>
     64#endif
     65#if defined HAVE_BOOST_FUNCTION_HPP || defined HAVE_BOOST_THREAD_HPP
    5866#include <boost/function.hpp>
     67#endif
     68#ifdef HAVE_BOOST_ARCHIVE_TEXT_OARCHIVE_HPP
    5969// serialization has bug with overloaded new, see https://svn.boost.org/trac/boost/ticket/3400
    6070#include <boost/serialization/access.hpp>
     71#endif
     72#if defined HAVE_VALARRAY || defined HAVE_BOOST_ARCHIVE_TEXT_OARCHIVE_HPP
    6173// valarray uses specific new as well
    6274#include <valarray>
     75#endif
    6376
    6477
Note: See TracChangeset for help on using the changeset viewer.