example allow_only_smart_ptr_policy working on msvc2013
diff --git a/README.md b/README.md
index 9e2d988..e6f81e5 100644
--- a/README.md
+++ b/README.md
@@ -84,8 +84,9 @@ int main() {
 * [Todo/Issues] (https://github.com/krzysztof-jusiak/di/issues?state=open)

 ## Continuous integration
-[![Build Status](https://travis-ci.org/krzysztof-jusiak/di.png?branch=master)](https://travis-ci.org/krzysztof-jusiak/di) [![Coverage Status](https://coveralls.io/repos/krzysztof-jusiak/di/badge.png?branch=master)](https://coveralls.io/r/krzysztof-jusiak/di?branch=master)
+[![Build Status](https://travis-ci.org/krzysztof-jusiak/di.png?branch=master)](https://travis-ci.org/krzysztof-jusiak/di)
 [![Build Status](https://ci.appveyor.com/api/projects/status/1il4knxh7tq9o5ic)](https://ci.appveyor.com/project/krzysztof-jusiak/di)
+[![Coverage Status](https://coveralls.io/repos/krzysztof-jusiak/di/badge.png?branch=master)](https://coveralls.io/r/krzysztof-jusiak/di?branch=master)

 ## License
 Distributed under the [Boost Software License, Version 1.0](http://www.boost.org/LICENSE_1_0.txt).
diff --git a/example/Jamfile.v2 b/example/Jamfile.v2
index 36dde06..48bb1d3 100644
--- a/example/Jamfile.v2
+++ b/example/Jamfile.v2
@@ -25,7 +25,7 @@ test-suite "di / c++ 03" :
 ;

 test-suite "di / c++ 11" :
-    #[ run-test c++11 : cpp_11/allow_only_smart_ptr_policy.cpp ]
+    [ run-test c++11 : cpp_11/allow_only_smart_ptr_policy.cpp ]
     [ run-test c++11 : cpp_11/concepts.cpp ]
     [ run-test c++11 : cpp_11/inject.cpp ]
     [ run-test c++11 : cpp_11/custom_scope.cpp ]
diff --git a/example/cpp_11/allow_only_smart_ptr_policy.cpp b/example/cpp_11/allow_only_smart_ptr_policy.cpp
index d3ace40..cb6e73c 100644
--- a/example/cpp_11/allow_only_smart_ptr_policy.cpp
+++ b/example/cpp_11/allow_only_smart_ptr_policy.cpp
@@ -6,6 +6,7 @@
 //
 #include <boost/shared_ptr.hpp>
 #include <boost/utility/enable_if.hpp>
+#include <boost/type_traits/remove_reference.hpp>
 #include <boost/mpl/bool.hpp>
 #include <boost/mpl/has_xxx.hpp>
 #include <boost/mpl/assert.hpp>
@@ -29,7 +30,9 @@ class allow_only_smart_ptr_policy

     template<typename TDependency>
     struct is_creation_by_smart_ptr
-        : has_element_type<typename TDependency::type>
+        : has_element_type<
+              typename boost::remove_reference<typename TDependency::type>::type
+          >
     { };

 public: