Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67162 - sandbox/configurator/boost/configurator
From: for.dshevchenko_at_[hidden]
Date: 2010-12-11 03:30:29


Author: dshevchenko
Date: 2010-12-11 03:30:28 EST (Sat, 11 Dec 2010)
New Revision: 67162
URL: http://svn.boost.org/trac/boost/changeset/67162

Log:
Add file

Added:
   sandbox/configurator/boost/configurator/macro.hpp (contents, props changed)

Added: sandbox/configurator/boost/configurator/macro.hpp
==============================================================================
--- (empty file)
+++ sandbox/configurator/boost/configurator/macro.hpp 2010-12-11 03:30:28 EST (Sat, 11 Dec 2010)
@@ -0,0 +1,28 @@
+// macro.hpp
+// ~~~~~~~~~
+//
+// Copyright (C) 2010 Denis Shevchenko (for @ dshevchenko.biz)
+//
+// Distributed under the Boost Software License, version 1.0
+// (see http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_CONFIGURATOR_MACRO_HPP
+#define BOOST_CONFIGURATOR_MACRO_HPP
+
+#include <boost/configurator/option.hpp>
+
+namespace boost {
+
+/// \namespace cf
+/// \brief Main namespace of library.
+namespace cf {
+
+#define BOOST_CONFIGURATOR_OPTION( type ) \
+ struct type : public boost::cf::option { \
+ type() : boost::cf::option( typeid( type ).name(), #type ) {} \
+ };
+
+} // namespace cf
+} // namespace boost
+
+#endif // BOOST_CONFIGURATOR_MACRO_HPP


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk