Commit d633dfc7 authored by Matthias Möller's avatar Matthias Möller

- change name of the types "True" and "False" to "TrueType" and "FalseType" to...

- change name of the types "True" and "False" to "TrueType" and "FalseType" to clearify, that these are types

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1137 fdac6126-5c0c-442c-9429-916003d36597
parent 0bc61d58
......@@ -504,8 +504,8 @@ namespace OMFormat {
// -------------------- (re-)store integer with wanted number of bits (bytes)
typedef GenProg::True t_signed;
typedef GenProg::False t_unsigned;
typedef GenProg::TrueType t_signed;
typedef GenProg::FalseType t_unsigned;
// helper to store a an integer
template< typename T >
......
......@@ -377,20 +377,20 @@ public:
}
void set_prev_halfedge_handle(HalfedgeHandle _heh, HalfedgeHandle _pheh,
GenProg::True)
GenProg::TrueType)
{ halfedge(_heh).prev_halfedge_handle_ = _pheh; }
void set_prev_halfedge_handle(HalfedgeHandle /* _heh */, HalfedgeHandle /* _pheh */,
GenProg::False)
GenProg::FalseType)
{}
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh) const
{ return prev_halfedge_handle(_heh, HasPrevHalfedge() ); }
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh, GenProg::True) const
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh, GenProg::TrueType) const
{ return halfedge(_heh).prev_halfedge_handle_; }
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh, GenProg::False) const
HalfedgeHandle prev_halfedge_handle(HalfedgeHandle _heh, GenProg::FalseType) const
{
if (is_boundary(_heh))
{//iterating around the vertex should be faster than iterating the boundary
......
......@@ -72,10 +72,10 @@ template <bool b> struct Bool2Type { enum { my_bool = b }; };
template <int i> struct Int2Type { enum { my_int = i }; };
/// Handy typedef for Bool2Type<true> classes
typedef Bool2Type<true> True;
typedef Bool2Type<true> TrueType;
/// Handy typedef for Bool2Type<false> classes
typedef Bool2Type<false> False;
typedef Bool2Type<false> FalseType;
//-----------------------------------------------------------------------------
/// compile time assertions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment