what may cause compile error (expected nested-name-specifier before 'Policy-T')?

Jonathan Wakely jwakely.gcc@gmail.com
Mon Jul 11 19:38:00 GMT 2011


On 11 July 2011 19:59, eric wrote:
> // Example 5-10 constrained_value.hpp
> #ifndef CINSTRAINED_VALUE_HPP

           ^ ???

> #define CONSTRAINED_VALUE_HPP
>
> #include <cstdlib>
> #include <iostream>
>
> using namespace std;
>
> template<class Policy_T>
> struct ConstrainedValue
> {
>  public:
>  // public typedefs
>  typedef typename Policy_T policy_type;

          ^ typename not allowed here



More information about the Gcc-help mailing list