Permalink
Browse files

Merge branch 'master' into fix_TODO_support

  • Loading branch information...
2 parents 43a98b8 + 25af3ed commit 9edb541c397079922d920cc937fabe6ee658d3a8 @RadixSeven RadixSeven committed May 4, 2011
Showing with 5 additions and 5 deletions.
  1. +1 −1 inc/Library/Build/Test.pm
  2. +2 −2 perl++/headers/interpreter.h
  3. +1 −1 perl++/headers/typecasts.h
  4. +1 −1 t/pod.t
@@ -19,7 +19,7 @@ my %test_methods = (
verbosity => $self->stash('verbose'),
exec => sub {
my (undef, $file) = @_;
- return -B $file ? [ $file ] : [ $^X, '-T', '-I' . catdir(qw/blib lib/), $file ];
+ return -B $file ? [ $file ] : [ $^X, '-I' . catdir(qw/blib lib/), $file ];
},
merge => 1,
color => -t STDOUT,
@@ -5,8 +5,8 @@ namespace perl {
};
}
- template<typename T, typename U> auto typecast_to(U&& u) -> decltype(typecast::typemap<T>::cast_to(u)) {
- return typecast::typemap<T>::cast_to(u);
+ template<typename T, typename U> auto typecast_to(U&& u) -> decltype(typecast::typemap<T>::cast_to(std::forward<U>(u))) {
+ return typecast::typemap<T>::cast_to(std::forward<U>(u));
}
class lock {
@@ -11,7 +11,7 @@ namespace perl {
typedef boost::false_type from_type;
typedef boost::true_type to_type;
- static const T& cast_to(const T& t) {
+ static T cast_to(T&& t) {
return t;
}
static const Scalar::Temp cast_from(Interpreter& interp, const T& t) {
View
@@ -1,4 +1,4 @@
-#!perl -T
+#!perl
use strict;
use warnings;

0 comments on commit 9edb541

Please sign in to comment.