浏览器同步未更新浏览器中的更改

时间:2018-10-27 13:51:30

标签: angularjs gulp gulp-watch gulp-browser-sync

几天来,我正尝试使用broswersync解决此问题。在这方面的任何帮助将不胜感激。

问题:我正在终端中显示此消息正在重新加载浏览器... ,但无法更新浏览器中的更改。

gulp版本::

1)CLI版本: 2.0.1 2)本地版本: 3.9.1

Gulp.js

#include <iostream>
#include <type_traits>

struct A
 { static void f() { std::cout << "A::f()" << std::endl; } };

struct B
 {
  static size_t f(std::string const& s_)
   { std::cout << "B::f()" << std::endl; return s_.size(); }
 };

struct C
 { };


template <typename T>
struct X
 {
  static void g (...)
   { std::cout << "Operation not supported!" << std::endl; }

  template <typename ... As, typename U = T>
  static auto g(int, As && ... as)
     -> decltype( U::f(std::forward<As>(as)...) )
   { return T::f(std::forward<As>(as)...); }

  template <typename ... As>
  static auto f (As && ... as)
   { return g(0, std::forward<As>(as)...); }
 };

int main ()
 {
   X<A>::f();  // now call variadic version
   auto const x = X<B>::f("Hello");  // Works just fine as before
   std::cout << x << std::endl;
   X<C>::f();  // now compile
 }

0 个答案:

没有答案