// CS 509 - Advanced Programming II
// Spring 2004
//
// An example of using traits-enabled expression templates.

#include <iostream>
#include <functional>
#include "ett.h"


def_binexp(<, less)
def_binexp(||, logical_or)


int
main() {

  result_type temp = 450.0;
  variable t = temp;

  const bool abnormal =
    ((t < 97.6) || (99.6 < t)).evaluate();

  std::cout << temp << " is " << (abnormal ? "ab" : "") << "normal.\n";
  }

// $Log: et-traits.cc,v $
// Revision 1.1  2004/05/06 19:43:14  rclayton
// Initial revision
//


syntax highlighted by Code2HTML, v. 0.9