Boost logo

Boost :

From: David Brownell (david_brownell_at_[hidden])
Date: 2002-02-21 18:12:39


I am playing around with the Concept Check classes, and trying to get
the following code to compile. All I want to check is if the type is a
std::vector and contains unsigned chars. What am I doing wrong? I am
trying to compile on VS.Net.

Thanks in advance for your help!
David Brownell

#include<vector>
#include "boost\concept_check.hpp"

template <class OutputVector = std::vector<unsigned char> >
class Test
{
    BOOST_CLASS_REQUIRES(OutputVector,
boost::ConvertibleConcept<OutputVector::value_type, unsigned char>);
    BOOST_CLASS_REQUIRES(OutputVector,
boost::RandomAccessContainerConcept<OutputVector>);
};

int main(void)
{
    Test t<>;
    return(true);
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk