示例#1
0
void BondedTyped(const bond::bonded<T>& bonded, const T& expected)
{
    T value;

    bonded.Deserialize(value);

    UT_AssertIsTrue(Equal(expected, value));

    CopyAndMove(value);

    auto value2 = bonded.Deserialize();
    UT_AssertIsTrue(Equal(expected, value2));
}
    void operator()(const bond::bonded<T>& bonded) const
    {
        T obj;

        bonded.Deserialize(obj);
        n = obj.n;
    }
示例#3
0
void BondedCast(const bond::bonded<T1>& bonded, const T2& expected)
{
    T2 value;
    
    bonded.Deserialize(value);

    UT_AssertIsTrue(Equal(expected, value));

    auto value2 = bonded.template Deserialize<T2>();
    UT_AssertIsTrue(Equal(expected, value2));
}