added dummy_constructor to dummyT so it can be used in concept archetypes

[SVN r9181]
This commit is contained in:
Jeremy Siek
2001-02-13 02:03:59 +00:00
parent 5482763a93
commit 1988994bd3

View File

@ -15,12 +15,14 @@
# include <assert.h>
# include <boost/type_traits.hpp>
# include <boost/static_assert.hpp>
# include <boost/concept_archetype.hpp> // for detail::dummy_constructor
namespace boost {
// use this for the value type
struct dummyT {
dummyT() { }
dummyT(detail::dummy_constructor) { }
dummyT(int x) : m_x(x) { }
int foo() const { return m_x; }
bool operator==(const dummyT& d) const { return m_x == d.m_x; }