~ubuntu-branches/ubuntu/trusty/deal.ii/trusty

« back to all changes in this revision

Viewing changes to contrib/boost/include/boost/exception/errinfo_errno.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV, Adam C. Powell, IV, Denis Barbier
  • Date: 2010-07-29 13:47:01 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100729134701-akb8jb3stwge8tcm
Tags: 6.3.1-1
[ Adam C. Powell, IV ]
* Changed to source format 3.0 (quilt).
* Changed maintainer to debian-science with Adam Powell as uploader.
* Added source lintian overrides about Adam Powell's name.
* Added Vcs info on git repository.
* Bumped Standards-Version.
* Changed stamp-patch to patch target and fixed its application criterion.
* Moved make_dependencies and expand_instantiations to a versioned directory
  to avoid shlib package conflicts.

[ Denis Barbier ]
* New upstream release (closes: #562332).
  + Added libtbb support.
  + Forward-ported all patches.
* Updates for new PETSc version, including workaround for different versions
  of petsc and slepc.
* Add debian/watch.
* Update to debhelper 7.
* Added pdebuild patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
 
2
 
 
3
//Distributed under the Boost Software License, Version 1.0. (See accompanying
 
4
//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
5
 
 
6
#ifndef UUID_F0EE17BE6C1211DE87FF459155D89593
 
7
#define UUID_F0EE17BE6C1211DE87FF459155D89593
 
8
 
 
9
#include "boost/exception/info.hpp"
 
10
#include <errno.h>
 
11
#include <string.h>
 
12
 
 
13
namespace
 
14
boost
 
15
    {
 
16
    typedef error_info<struct errinfo_errno_,int> errinfo_errno;
 
17
 
 
18
    //Usage hint:
 
19
    //if( c_function(....)!=0 )
 
20
    //    BOOST_THROW_EXCEPTION(
 
21
    //        failure() <<
 
22
    //        errinfo_errno(errno) <<
 
23
    //        errinfo_api_function("c_function") );
 
24
    inline
 
25
    std::string
 
26
    to_string( errinfo_errno const & e )
 
27
        {
 
28
        std::ostringstream tmp;
 
29
        int v=e.value();
 
30
        tmp << v << ", \"" << strerror(v) << "\"";
 
31
        return tmp.str();
 
32
        }
 
33
    }
 
34
 
 
35
#endif