mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-08 20:00:04 -04:00

Make all types have ValueLike traits by default. This allows new types to be added without any fuzz (no need to specify the traits) if it has operator>>. It also removes the need to manually specify the ArgTrait for all built in types (such as long, bool, char, float etc). ArgTraits now works in the following way: 1) If there exists a specialization of ArgTraits for type X, use it. 2) If no specialization exists but X has the typename X::ValueCategory, use the specialization for X::ValueCategory. 3) If neither (1) nor (2) defines the trait, use the default which is ValueLike. Conflicts: examples/Makefile.am examples/test24.cpp tests/Makefile.am tests/runtests.sh tests/test83.out tests/test83.sh
13 lines
231 B
Bash
Executable File
13 lines
231 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# this tests whether all required args are listed as
|
|
# missing when no arguments are specified
|
|
# failure
|
|
../examples/test26 -v "1 2 3" > tmp.out 2>&1
|
|
|
|
if cmp -s tmp.out $srcdir/test87.out; then
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi
|