diff --git a/src/2geom/utils.h b/src/2geom/utils.h
index 2be995248b57db8c48d8110befcbe8d20cff430b..5ab19174947a886f0f93776f503c137d8e9e0a8e 100644 (file)
--- a/src/2geom/utils.h
+++ b/src/2geom/utils.h
-#ifndef UTILS_HEADER
-#define UTILS_HEADER
+#ifndef LIB2GEOM_UTILS_HEADER
+#define LIB2GEOM_UTILS_HEADER
-/** Various utility functions.
+/**
+ * \file
+ * \brief Various utility functions.
*
+ * Copyright 2007 Johan Engelen <goejendaagh@zonnet.nl>
* Copyright 2006 Michael G. Sloan <mgsloan@gmail.com>
*
* This library is free software; you can redistribute it and/or
*/
#include <cmath>
-#include <stdexcept>
+#include <vector>
-class NotImplemented : public std::logic_error {
-public:
- NotImplemented() : std::logic_error("method not implemented") {}
-};
+namespace Geom {
// proper logical xor
inline bool logical_xor (bool a, bool b) { return (a || b) && !(a && b); }
return round( x * multiplier ) / multiplier;
}
+
+void binomial_coefficients(std::vector<size_t>& bc, size_t n);
+
+}
+
#endif
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :